In [1]:
import emission.storage.decorations.location_queries as lq

In [2]:
reload(lq)


Out[2]:
<module 'emission.storage.decorations.location_queries' from '/Users/shankari/e-mission/e-mission-server/emission/storage/decorations/location_queries.pyc'>

In [3]:
import logging
logging.getLogger().setLevel(logging.DEBUG)

In [4]:
import emission.analysis.classification.cleaning.location_smoothing as ls

In [5]:
%matplotlib inline

In [6]:
lq.get_uuid_list()


Out[6]:
[UUID('0763de67-f61e-3f5d-90e7-518e69793954'),
 UUID('f955cff1-8fb8-3b42-8776-6d8874e5b90a'),
 UUID('b0d937d0-70ef-305e-9563-440369012b39')]

In [7]:
import datetime as pydt

In [8]:
import pytz

In [9]:
get_jan_dt = lambda date: pydt.datetime(2015,7,date,tzinfo=pytz.timezone("America/Los_Angeles"))

In [10]:
get_jul_dt = lambda date: pydt.datetime(2015,7,date,tzinfo=pytz.timezone("America/Los_Angeles"))

In [11]:
get_aug_dt = lambda date: pydt.datetime(2015,8,date,tzinfo=pytz.timezone("America/Los_Angeles"))

In [12]:
import emission.analysis.plotting.leaflet_osm.our_plotter as lo

In [13]:
reload(lo)


Out[13]:
<module 'emission.analysis.plotting.leaflet_osm.our_plotter' from '/Users/shankari/e-mission/e-mission-server/emission/analysis/plotting/leaflet_osm/our_plotter.pyc'>

In [14]:
import emission.core.get_database as edb

In [15]:
from attrdict import AttrDict

In [16]:
import pandas as pd

In [17]:
import emission.analysis.plotting.leaflet_osm.ipython_helper as ipy

In the previous data collection, it looks like the last entries before a trip end detection all had high accuracies. This means that simply filtering by accuracy is not good enough. Let us take a look at the newer data to see if we still see that behavior.


In [18]:
import emission.core.get_database as edb
from uuid import UUID
import attrdict as ad
import datetime as pydt
import emission.analysis.point_features as pf

In [19]:
myUUID = UUID('0763de67-f61e-3f5d-90e7-518e69793954')

In [20]:
reload(lq)


Out[20]:
<module 'emission.storage.decorations.location_queries' from '/Users/shankari/e-mission/e-mission-server/emission/storage/decorations/location_queries.pyc'>

Our algorithm:

  1. Remove all low accuracy points
  2. Remove all points that are identical to the previous one (distance == 0 meters)
  3. Get all points in the past 5 mins, and the last 10 points
  4. Pick the set with the oldest point
  5. See if all points in the set are within 100m of the last point
  6. If so, end trip, otherwise continue trip

In [21]:
import emission.analysis.classification.segmentation.trip_segmentation as ts

In [22]:
reload(ts)


Out[22]:
<module 'emission.analysis.classification.segmentation.trip_segmentation' from '/Users/shankari/e-mission/e-mission-server/emission/analysis/classification/segmentation/trip_segmentation.pyc'>

In [23]:
import emission.analysis.classification.segmentation.section_segmentation as ss

In [24]:
reload(ss)


Out[24]:
<module 'emission.analysis.classification.segmentation.section_segmentation' from '/Users/shankari/e-mission/e-mission-server/emission/analysis/classification/segmentation/section_segmentation.pyc'>

In [25]:
my_points_time_df_aug_21 = lq.get_plottable_df(myUUID, "time", get_aug_dt(21), get_aug_dt(22))


final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440144000000.0}}, {'data.mTime': {'$lt': 1440230400000.0}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'} 

In [26]:
my_trips_df_aug_21 = ts.segment_into_trips(my_points_time_df_aug_21)


DEBUG:root:filtering points Int64Index([33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 55, 56, 65, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 149, 154, 155, 156, 157, 181, 186, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 220, 221, 224, ...], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (738, 29) to (530, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
------------------------------2015-08-21 07:55:01------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 07:55:07------------------------------
last5MinsDistances = [ 17.80247622] with length 1
last10PointsDistances = [ 17.80247622   0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 07:55:13------------------------------
last5MinsDistances = [ 32.00804906  14.35269724] with length 2
last10PointsDistances = [ 32.00804906  14.35269724   0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 07:55:19------------------------------
last5MinsDistances = [ 65.49356924  47.73423075  33.50744155] with length 3
last10PointsDistances = [ 65.49356924  47.73423075  33.50744155   0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 07:55:25------------------------------
last5MinsDistances = [ 105.53473968   87.80761559   73.52677925   40.09296011] with length 4
last10PointsDistances = [ 105.53473968   87.80761559   73.52677925   40.09296011    0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 07:55:30------------------------------
last5MinsDistances = [ 139.35459734  121.63018231  107.34660192   73.90970902   33.82263038] with length 5
last10PointsDistances = [ 139.35459734  121.63018231  107.34660192   73.90970902   33.82263038
    0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 07:55:36------------------------------
last5MinsDistances = [ 161.5600621   143.87511321  129.56217927   96.19881371   56.11683848
   22.42713866] with length 6
last10PointsDistances = [ 161.5600621   143.87511321  129.56217927   96.19881371   56.11683848
   22.42713866    0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 07:55:41------------------------------
last5MinsDistances = [ 159.81867349  142.48458145  128.15281084   95.68726878   56.9583022
   28.12155017   17.49269294] with length 7
last10PointsDistances = [ 159.81867349  142.48458145  128.15281084   95.68726878   56.9583022
   28.12155017   17.49269294    0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 07:55:46------------------------------
last5MinsDistances = [ 161.10562857  144.51804067  130.48520409  100.16060422   65.52345833
   44.97212895   39.03003211   21.54429243] with length 8
last10PointsDistances = [ 161.10562857  144.51804067  130.48520409  100.16060422   65.52345833
   44.97212895   39.03003211   21.54429243    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 161.105628574, last10PointsDistance.max() = 161.105628574
------------------------------2015-08-21 07:55:51------------------------------
last5MinsDistances = [ 169.60401026  153.92305919  140.40860355  112.53995366   81.91004159
   65.50638191   59.69554505   42.34437319   21.07947191] with length 9
last10PointsDistances = [ 153.92305919  140.40860355  112.53995366   81.91004159   65.50638191
   59.69554505   42.34437319   21.07947191    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 169.604010259, last10PointsDistance.max() = 153.923059193
------------------------------2015-08-21 07:55:56------------------------------
last5MinsDistances = [ 180.62813437  166.06084524  153.26458284  128.18364071  101.47779337
   88.14384143   82.61387086   65.34575284   44.12642127   23.05285866] with length 10
last10PointsDistances = [ 153.26458284  128.18364071  101.47779337   88.14384143   82.61387086
   65.34575284   44.12642127   23.05285866    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 180.628134375, last10PointsDistance.max() = 153.264582844
------------------------------2015-08-21 07:56:02------------------------------
last5MinsDistances = [ 186.39262811  172.39203865  159.9782393   136.23343094  111.24857467
   99.12010467   93.78274954   76.52683786   55.29442645   34.2287067
   11.18195602] with length 11
last10PointsDistances = [ 136.23343094  111.24857467   99.12010467   93.78274954   76.52683786
   55.29442645   34.2287067    11.18195602    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 11
last5MinsDistances.max() = 186.392628107, last10PointsDistance.max() = 136.233430944
------------------------------2015-08-21 07:56:07------------------------------
last5MinsDistances = [ 197.6929332   184.3448962   172.3691031   149.9950327   126.45246935
  114.85098608  109.09738958   91.95704921   70.87231081   49.79356995
   26.77980739   15.73469508] with length 12
last10PointsDistances = [ 126.45246935  114.85098608  109.09738958   91.95704921   70.87231081
   49.79356995   26.77980739   15.73469508    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 12
last5MinsDistances.max() = 197.692933197, last10PointsDistance.max() = 126.452469355
------------------------------2015-08-21 07:56:12------------------------------
last5MinsDistances = [ 211.65957511  199.60605212  188.53724875  168.95045752  148.68321985
  139.32008049  134.279064    117.07301151   95.85017129   74.78999609
   51.74123623   40.56149123   25.24898847] with length 13
last10PointsDistances = [ 139.32008049  134.279064    117.07301151   95.85017129   74.78999609
   51.74123623   40.56149123   25.24898847    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 13
last5MinsDistances.max() = 211.659575113, last10PointsDistance.max() = 139.320080492
------------------------------2015-08-21 07:56:18------------------------------
last5MinsDistances = [ 232.75727934  222.01014217  211.85594086  194.79116701  177.10161225
  169.11747299  164.28253022  147.08585222  125.85110445  104.79785714
   81.75209169   70.57109835   55.2018696    30.01292227] with length 14
last10PointsDistances = [ 164.28253022  147.08585222  125.85110445  104.79785714   81.75209169
   70.57109835   55.2018696    30.01292227    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 14
last5MinsDistances.max() = 232.757279338, last10PointsDistance.max() = 164.282530225
------------------------------2015-08-21 07:56:23------------------------------
last5MinsDistances = [ 242.27621529  231.90121742  222.00136827  205.56931209  188.40205261
  180.5392006   175.56217168  158.40077216  137.20459667  116.14087834
   93.0892536    81.9125393    66.46484792   41.35521307   11.42851305] with length 15
last10PointsDistances = [ 158.40077216  137.20459667  116.14087834   93.0892536    81.9125393
   66.46484792   41.35521307   11.42851305    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 15
last5MinsDistances.max() = 242.276215292, last10PointsDistance.max() = 158.400772165
------------------------------2015-08-21 07:56:29------------------------------
last5MinsDistances = [ 251.23434956  240.83354463  230.89338859  214.23537299  196.52127462
  187.87758734  182.23169792  165.19836425  144.16430518  123.085089
  100.0528062    88.91861184   73.29240574   48.56987194   19.51539815
    8.95961549] with length 16
last10PointsDistances = [ 144.16430518  123.085089    100.0528062    88.91861184   73.29240574
   48.56987194   19.51539815    8.95961549    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 16
last5MinsDistances.max() = 251.234349561, last10PointsDistance.max() = 144.164305181
------------------------------2015-08-21 07:56:35------------------------------
last5MinsDistances = [ 250.9332289   240.63877725  230.77864576  214.35934722  196.96119754
  188.61082464  183.15499666  166.0861743   145.00493884  123.92600876
  100.88200414   89.73172658   74.14546446   49.29190467   19.86121491
    8.80394759    1.82194705] with length 17
last10PointsDistances = [ 123.92600876  100.88200414   89.73172658   74.14546446   49.29190467
   19.86121491    8.80394759    1.82194705    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 17
last5MinsDistances.max() = 250.933228897, last10PointsDistance.max() = 123.926008764
------------------------------2015-08-21 07:56:41------------------------------
last5MinsDistances = [ 250.34768427  240.1952441   230.44261953  214.34490808  197.37641089
  189.42854869  184.23627954  167.12054721  145.97780512  124.90432692
  101.85215714   90.6851785    75.16355011   50.16218697   20.37634321
    8.97918505    4.26495515    2.44668714] with length 18
last10PointsDistances = [ 101.85215714   90.6851785    75.16355011   50.16218697   20.37634321
    8.97918505    4.26495515    2.44668714    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 18
last5MinsDistances.max() = 250.347684271, last10PointsDistance.max() = 101.852157136
------------------------------2015-08-21 07:56:46------------------------------
last5MinsDistances = [ 250.08042506  239.93321839  230.18513595  214.10383222  197.16379112
  189.24960358  184.08351329  166.96302299  145.8142551   124.74164918
  101.68916788   90.52085939   75.00642165   49.99223395   20.18261892
    8.77436605    4.40332796    2.59812127    0.27890722] with length 19
last10PointsDistances = [ 90.52085939  75.00642165  49.99223395  20.18261892   8.77436605
   4.40332796   2.59812127   0.27890722   0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 19
last5MinsDistances.max() = 250.080425059, last10PointsDistance.max() = 90.5208593882
------------------------------2015-08-21 07:56:52------------------------------
last5MinsDistances = [ 252.42683255  242.37216598  232.68789312  216.76525184  199.96452151
  192.10263036  186.92526752  169.80953439  148.66514346  127.59201319
  104.53971      93.37214396   77.85256237   52.84560629   23.02610728
   11.60646625    6.0167939     4.35685522    2.68912786    2.85384892] with length 20
last10PointsDistances = [ 77.85256237  52.84560629  23.02610728  11.60646625   6.0167939
   4.35685522   2.68912786   2.85384892   0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 20
last5MinsDistances.max() = 252.426832549, last10PointsDistance.max() = 77.8525623662
------------------------------2015-08-21 07:57:17------------------------------
last5MinsDistances = [ 368.40387918  355.62483095  343.83187326  320.79300468  293.03989587
  272.73367379  258.21863196  245.03232571  229.00716007  211.13288203
  192.798131    184.59249008  171.48747323  157.19207128  141.58490932
  135.4312768   127.40503868  128.53496982  130.22997221  130.50054536
  129.34471184] with length 21
last10PointsDistances = [ 157.19207128  141.58490932  135.4312768   127.40503868  128.53496982
  130.22997221  130.50054536  129.34471184    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 21
last5MinsDistances.max() = 368.40387918, last10PointsDistance.max() = 157.192071275
------------------------------2015-08-21 07:57:22------------------------------
last5MinsDistances = [ 391.23935875  378.96374614  367.50131298  345.40262879  318.66705613
  299.16296347  285.05909714  271.59976592  255.13862619  236.84333021
  217.84840694  209.21384574  195.55584757  179.58099173  161.24315598
  153.85803686  145.33522758  146.23391146  147.63961121  147.91734011
  146.37293134   27.45976729] with length 22
last10PointsDistances = [ 161.24315598  153.85803686  145.33522758  146.23391146  147.63961121
  147.91734011  146.37293134   27.45976729    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 22
last5MinsDistances.max() = 391.239358749, last10PointsDistance.max() = 161.243155984
------------------------------2015-08-21 07:57:28------------------------------
last5MinsDistances = [ 407.04262248  395.01208676  383.70913645  362.04216403  335.7382976
  316.52988945  302.54930386  289.01431766  272.41437477  253.97584747
  234.74355984  225.94887008  212.08654424  195.44615566  175.98493207
  168.08747346  159.39976955  160.18633266  161.44847027  161.72731182
  160.01600451   44.96191761   17.5642713 ] with length 23
last10PointsDistances = [ 168.08747346  159.39976955  160.18633266  161.44847027  161.72731182
  160.01600451   44.96191761   17.5642713     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 23
last5MinsDistances.max() = 407.042622484, last10PointsDistance.max() = 168.08747346
------------------------------2015-08-21 07:57:34------------------------------
last5MinsDistances = [ 406.01818929  393.89777584  382.53319356  360.68365533  334.15789811
  314.7425213   300.63172301  287.18286226  270.69936557  252.35654309
  233.2563514   224.53958545  210.76755524  194.38120935  175.26973826
  167.51200078  158.8645288   159.6808939   160.980829    161.25951573
  159.58997248   42.75680818   15.5831399     2.95199642] with length 24
last10PointsDistances = [ 158.8645288   159.6808939   160.980829    161.25951573  159.58997248
   42.75680818   15.5831399     2.95199642    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 24
last5MinsDistances.max() = 406.018189291, last10PointsDistance.max() = 161.259515726
------------------------------2015-08-21 07:57:39------------------------------
last5MinsDistances = [ 406.91304746  394.8230403   383.47895026  361.6884595   335.23069273
  315.87447086  301.79839395  288.32666594  271.81081044  253.44020676
  234.3001735   225.55915569  211.75828594  195.28760308  176.05243953
  168.24301579  159.58019108  160.3853875   161.67109117  161.94984727
  160.2643602    43.98529881   16.73929877    1.82768053    1.3031433 ] with length 25
last10PointsDistances = [ 160.3853875   161.67109117  161.94984727  160.2643602    43.98529881
   16.73929877    1.82768053    1.3031433     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 25
last5MinsDistances.max() = 406.913047456, last10PointsDistance.max() = 161.949847271
------------------------------2015-08-21 07:57:44------------------------------
last5MinsDistances = [ 405.79853372  393.75917902  382.45089677  360.77178514  334.46114975
  315.25550537  301.28190843  287.74184282  271.1379673   252.69850411
  233.46799958  224.67591585  210.81794103  194.19705772  174.77837405
  166.90255004  158.22139908  159.0131101   160.28194912  160.56076965
  158.85700446   43.73555898   16.3182577     1.27734362    2.48483226
    1.893516  ] with length 26
last10PointsDistances = [ 160.28194912  160.56076965  158.85700446   43.73555898   16.3182577
    1.27734362    2.48483226    1.893516      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 26
last5MinsDistances.max() = 405.798533718, last10PointsDistance.max() = 160.560769645
------------------------------2015-08-21 07:57:49------------------------------
last5MinsDistances = [ 418.58137914  406.42720399  395.0317349   373.05130046  346.28057503
  326.53872838  312.1664517   298.89975952  282.62881666  264.43531424
  245.50498118  236.87038581  223.17870845  206.93565716  187.84947003
  180.05151594  171.38718071  172.18991254  173.4708486   173.7496286
  172.05675187   53.95424445   27.65994757   12.10641061   12.59201486
   11.80854545   13.21818096] with length 27
last10PointsDistances = [ 173.7496286   172.05675187   53.95424445   27.65994757   12.10641061
   12.59201486   11.80854545   13.21818096    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 27
last5MinsDistances.max() = 418.581379141, last10PointsDistance.max() = 173.749628603
------------------------------2015-08-21 07:57:54------------------------------
last5MinsDistances = [ 436.35536728  424.15591193  412.71942838  390.56651583  363.47667476
  343.31255331  328.60481551  315.57952043  299.58826151  281.59139646
  262.8815958   254.35246375  240.76388708  224.70145342  205.65004989
  197.80540944  189.12194032  189.90867977  191.1672268   191.44608375
  189.72604611   70.59219022   45.22337295   29.72259614   30.4061094
   29.59788051   30.90286019   17.81410769] with length 28
last10PointsDistances = [ 189.72604611   70.59219022   45.22337295   29.72259614   30.4061094
   29.59788051   30.90286019   17.81410769    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 28
last5MinsDistances.max() = 436.355367278, last10PointsDistance.max() = 189.726046113
------------------------------2015-08-21 07:58:00------------------------------
last5MinsDistances = [ 453.74986793  441.69968963  430.35698501  408.44165767  381.55350292
  361.48323717  346.78150892  333.75633153  317.7317463   299.68098618
  280.86453431  272.257269    258.56395088  242.1484572   222.48128767
  214.35628636  205.59571267  206.31733161  207.49126451  207.77010927
  205.95869498   88.75412399   63.04342369   46.70732864   47.82656123
   46.88005807   47.95295083   35.39045967   18.17958076] with length 29
last10PointsDistances = [ 88.75412399  63.04342369  46.70732864  47.82656123  46.88005807
  47.95295083  35.39045967  18.17958076   0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 29
last5MinsDistances.max() = 453.749867931, last10PointsDistance.max() = 88.7541239869
------------------------------2015-08-21 08:10:17------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 3972729.01568298  3972711.4693445   3972713.67757502  3972712.44096111
  3972712.70409108  3972703.02793349  3972687.97971596  3972670.15544328
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 08:10:47------------------------------
last5MinsDistances = [ 0.10445383] with length 1
last10PointsDistances = [ 3972711.39551257  3972713.60374304  3972712.36712915  3972712.63025915
  3972702.95410139  3972687.90588367  3972670.08161091        0.10445383
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 1
last5MinsDistances.max() = 0.104453834717, last10PointsDistance.max() = 3972713.60374
------------------------------2015-08-21 08:12:48------------------------------
last5MinsDistances = [ 0.07847301  0.04567923] with length 2
last10PointsDistances = [ 3972713.64941778  3972712.41280389  3972712.67593389  3972702.99977613
  3972687.95155841  3972670.12728566        0.07847301        0.04567923
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 2
last5MinsDistances.max() = 0.078473014142, last10PointsDistance.max() = 3972713.64942
------------------------------2015-08-21 08:13:48------------------------------
last5MinsDistances = [ 0.18606536  0.16304939  0.13198203] with length 3
last10PointsDistances = [ 3972712.49178344  3972712.75491349  3972703.07875548  3972688.03053749
  3972670.20626463        0.18606536        0.16304939        0.13198203
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 3
last5MinsDistances.max() = 0.186065359314, last10PointsDistance.max() = 3972712.75491
------------------------------2015-08-21 08:14:18------------------------------
last5MinsDistances = [ 0.34807613  0.2982706   0.28259664  0.16511743] with length 4
last10PointsDistances = [ 3972712.75655767  3972703.08039925  3972688.03218084  3972670.20790782
        0.34807613        0.2982706         0.28259664        0.16511743
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 4
last5MinsDistances.max() = 0.348076130617, last10PointsDistance.max() = 3972712.75656
------------------------------2015-08-21 08:15:18------------------------------
last5MinsDistances = [ 0.05460864  0.00997503  0.12300702  0.27564527] with length 4
last10PointsDistances = [ 3972703.00855641  3972687.96033868  3972670.13606592        0.08035246
        0.05460864        0.00997503        0.12300702        0.27564527
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 4
last5MinsDistances.max() = 0.275645271157, last10PointsDistance.max() = 3972703.00856
------------------------------2015-08-21 08:15:48------------------------------
last5MinsDistances = [ 0.03481794  0.11195634  0.25246712  0.03335848] with length 4
last10PointsDistances = [ 3972687.94450819  3972670.1202354         0.11297042        0.05109965
        0.03481794        0.11195634        0.25246712        0.03335848
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 4
last5MinsDistances.max() = 0.252467120291, last10PointsDistance.max() = 3972687.94451
------------------------------2015-08-21 08:16:48------------------------------
last5MinsDistances = [ 0.          0.13198203  0.28259664  0.00997503  0.03481794] with length 5
last10PointsDistances = [ 3972670.12728566        0.07847301        0.04567923        0.
        0.13198203        0.28259664        0.00997503        0.03481794
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 5
last5MinsDistances.max() = 0.282596644372, last10PointsDistance.max() = 3972670.12729
------------------------------2015-08-21 08:17:18------------------------------
last5MinsDistances = [ 0.03335848  0.12174872  0.26003883  0.03481794  0.00997503  0.03335848] with length 6
last10PointsDistances = [ 0.11164145  0.04142056  0.03335848  0.12174872  0.26003883  0.03481794
  0.00997503  0.03335848  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 0.260038833094, last10PointsDistance.max() = 0.260038833094
Found trip end at 2015-08-21 08:10:17
------------------------------2015-08-21 08:28:14------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 08:28:44------------------------------
last5MinsDistances = [ 26.71481397] with length 1
last10PointsDistances = [ 26.71481397   0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 08:29:14------------------------------
last5MinsDistances = [ 13.44393351  14.01418499] with length 2
last10PointsDistances = [ 13.44393351  14.01418499   0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 08:29:44------------------------------
last5MinsDistances = [  7.84809302  28.93063605  14.94192992] with length 3
last10PointsDistances = [  7.84809302  28.93063605  14.94192992   0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 08:30:14------------------------------
last5MinsDistances = [  1.12207951  25.63329821  12.3222632    7.79788314] with length 4
last10PointsDistances = [  1.12207951  25.63329821  12.3222632    7.79788314   0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 08:30:44------------------------------
last5MinsDistances = [  0.46294948  27.15127584  13.83325798   7.64093992   1.5253922 ] with length 5
last10PointsDistances = [  0.46294948  27.15127584  13.83325798   7.64093992   1.5253922    0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 08:31:14------------------------------
last5MinsDistances = [  6.68428091  28.33570194  14.32238601   1.17529427   6.62273188
   6.48867243] with length 6
last10PointsDistances = [  6.68428091  28.33570194  14.32238601   1.17529427   6.62273188
   6.48867243   0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 08:31:44------------------------------
last5MinsDistances = [ 181.85282709  204.29517384  194.43001609  185.50050582  182.90803562
  181.58576514  185.07525511] with length 7
last10PointsDistances = [ 181.85282709  204.29517384  194.43001609  185.50050582  182.90803562
  181.58576514  185.07525511    0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 08:32:44------------------------------
last5MinsDistances = [  22.05756648    5.81696682   10.81296751   25.4478816    21.03218815
   22.51155786   24.68844851  198.48234144] with length 8
last10PointsDistances = [  22.05756648    5.81696682   10.81296751   25.4478816    21.03218815
   22.51155786   24.68844851  198.48234144    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 198.482341436, last10PointsDistance.max() = 198.482341436
------------------------------2015-08-21 08:32:59------------------------------
last5MinsDistances = [  25.81021361    3.82630615   14.22689255   29.04088455   24.78319986
   26.26399792   28.31621533  201.44718165    3.75294926] with length 9
last10PointsDistances = [   3.82630615   14.22689255   29.04088455   24.78319986   26.26399792
   28.31621533  201.44718165    3.75294926    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 201.447181652, last10PointsDistance.max() = 201.447181652
------------------------------2015-08-21 08:33:31------------------------------
last5MinsDistances = [ 212.10984557  202.33238737  193.48609621  190.84474778  189.52819561
  193.05437245    8.06047702  206.29516901  209.23697987] with length 9
last10PointsDistances = [ 202.33238737  193.48609621  190.84474778  189.52819561  193.05437245
    8.06047702  206.29516901  209.23697987    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 212.109845566, last10PointsDistance.max() = 209.236979866
------------------------------2015-08-21 08:34:03------------------------------
last5MinsDistances = [  19.94026485   34.87579045   30.96211883   32.45279976   34.21493826
  206.85130876    9.97245803    6.23743641  214.6089246 ] with length 9
last10PointsDistances = [  34.87579045   30.96211883   32.45279976   34.21493826  206.85130876
    9.97245803    6.23743641  214.6089246     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 214.608924602, last10PointsDistance.max() = 214.608924602
------------------------------2015-08-21 08:34:44------------------------------
last5MinsDistances = [   9.7939481    10.95522482   15.68163898  186.0039745    13.29124643
   16.88942026  193.86151361   23.08779785] with length 8
last10PointsDistances = [   9.7939481    10.95522482   15.68163898  186.0039745    13.29124643
   16.88942026  193.86151361   23.08779785    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 193.861513609, last10PointsDistance.max() = 193.861513609
------------------------------2015-08-21 08:48:00------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 13414.32188896  13418.64762539  13235.60290883  13427.63570919
  13429.91112728  13227.54249766  13434.27736187  13416.62006659      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 08:48:06------------------------------
last5MinsDistances = [ 10.01949105] with length 1
last10PointsDistances = [ 13427.77503655  13244.73878525  13436.75602922  13439.03052531
  13236.67838459  13443.39538325  13425.74268367     10.01949105      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 1
last5MinsDistances.max() = 10.0194910547, last10PointsDistance.max() = 13443.3953832
------------------------------2015-08-21 08:48:12------------------------------
last5MinsDistances = [ 62.39879796  52.92416935] with length 2
last10PointsDistances = [ 13282.27420935  13474.15010552  13476.4162836   13274.21393933
  13480.76872179  13463.15751577     62.39879796     52.92416935      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 2
last5MinsDistances.max() = 62.3987979563, last10PointsDistance.max() = 13480.7687218
------------------------------2015-08-21 08:48:17------------------------------
last5MinsDistances = [ 125.64462892  115.82786738   64.00072867] with length 3
last10PointsDistances = [ 13530.06263821  13532.32190949  13330.24471185  13536.66402703
  13519.08730887    125.64462892    115.82786738     64.00072867      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 3
last5MinsDistances.max() = 125.644628923, last10PointsDistance.max() = 13536.664027
------------------------------2015-08-21 08:48:23------------------------------
last5MinsDistances = [ 224.3204267   214.41726441  162.95480472   98.9551653 ] with length 4
last10PointsDistances = [ 13618.54103975  13416.66003122  13622.86710854  13605.34405198
    224.3204267     214.41726441    162.95480472     98.9551653       0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 4
last5MinsDistances.max() = 224.320426701, last10PointsDistance.max() = 13622.8671085
------------------------------2015-08-21 08:48:29------------------------------
last5MinsDistances = [ 317.3786781   307.47647749  255.89000416  191.92289866   93.05927365] with length 5
last10PointsDistances = [ 13495.15524126  13701.14093679  13683.67336899    317.3786781
    307.47647749    255.89000416    191.92289866     93.05927365      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 5
last5MinsDistances.max() = 317.378678103, last10PointsDistance.max() = 13701.1409368
------------------------------2015-08-21 08:48:43------------------------------
last5MinsDistances = [ 359.30053865  349.44520759  297.49383374  233.676573    135.24208903
   42.97509147] with length 6
last10PointsDistances = [ 13731.05638342  13713.62282362    359.30053865    349.44520759
    297.49383374    233.676573      135.24208903     42.97509147      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 359.300538648, last10PointsDistance.max() = 13731.0563834
------------------------------2015-08-21 08:49:14------------------------------
last5MinsDistances = [ 677.91074378  668.88897392  616.21032389  557.17225132  468.10798146
  385.62867402  344.84020838] with length 7
last10PointsDistances = [ 13861.77262517    677.91074378    668.88897392    616.21032389
    557.17225132    468.10798146    385.62867402    344.84020838      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 677.910743779, last10PointsDistance.max() = 13861.7726252
------------------------------2015-08-21 08:49:44------------------------------
last5MinsDistances = [ 676.62221839  667.7303413   615.23056505  557.04777168  469.69269131
  389.25231927  349.22354886   19.50679193] with length 8
last10PointsDistances = [ 676.62221839  667.7303413   615.23056505  557.04777168  469.69269131
  389.25231927  349.22354886   19.50679193    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 676.622218386, last10PointsDistance.max() = 676.622218386
------------------------------2015-08-21 08:50:14------------------------------
last5MinsDistances = [ 886.30184226  877.62810482  825.48054864  768.42591519  682.25051401
  601.57217761  561.04021194  216.26307021  212.66630741] with length 9
last10PointsDistances = [ 877.62810482  825.48054864  768.42591519  682.25051401  601.57217761
  561.04021194  216.26307021  212.66630741    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 886.301842261, last10PointsDistance.max() = 877.628104823
------------------------------2015-08-21 08:50:44------------------------------
last5MinsDistances = [ 1171.55522974  1163.52459531  1112.7997045   1059.53260069   979.25275785
   903.50306935   864.38172274   522.25666231   515.69132943   309.13704045] with length 10
last10PointsDistances = [ 1112.7997045   1059.53260069   979.25275785   903.50306935   864.38172274
   522.25666231   515.69132943   309.13704045     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 1171.55522974, last10PointsDistance.max() = 1112.7997045
------------------------------2015-08-21 09:14:17------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 18462.34568068  18404.65699073  18346.13996339  18312.21933543
  17985.47652169  17975.66302674  17778.83637887  17470.67605632      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 09:22:56------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 21621.64915862  21568.03709235  21535.92499345  21217.1365668
  21206.23401235  21015.14360593  20709.28683962   3477.99168782      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 09:23:39------------------------------
last5MinsDistances = [ 261.54952693] with length 1
last10PointsDistances = [ 21794.49475769  21762.21053884  21442.62135757  21431.81948121
  21240.14855099  20934.01192867   3649.90892933    261.54952693      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 1
last5MinsDistances.max() = 261.549526934, last10PointsDistance.max() = 21794.4947577
------------------------------2015-08-21 09:23:55------------------------------
last5MinsDistances = [ 890.76625094  640.28729484] with length 2
last10PointsDistances = [ 22181.3269453   21858.93505736  21848.50083417  21654.79603963
  21347.75469552   3942.83084401    890.76625094    640.28729484      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 2
last5MinsDistances.max() = 890.766250944, last10PointsDistance.max() = 22181.3269453
------------------------------2015-08-21 09:24:57------------------------------
last5MinsDistances = [ 1382.63883841  1126.28808112   497.33386456] with length 3
last10PointsDistances = [ 22280.05699709  22269.82103901  22075.07079408  21767.61184888
   4323.99115743   1382.63883841   1126.28808112    497.33386456      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 3
last5MinsDistances.max() = 1382.63883841, last10PointsDistance.max() = 22280.0569971
------------------------------2015-08-21 09:26:57------------------------------
last5MinsDistances = [ 3098.52491203  2863.09869569  2229.16447586  1793.01728035] with length 4
last10PointsDistances = [ 23109.68022803  22909.41589397  22600.44867733   5213.50586359
   3098.52491203   2863.09869569   2229.16447586   1793.01728035      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 4
last5MinsDistances.max() = 3098.52491203, last10PointsDistance.max() = 23109.680228
------------------------------2015-08-21 09:30:56------------------------------
last5MinsDistances = [ 3072.51886062] with length 1
last10PointsDistances = [ 25161.74145675  24853.06311682   7899.66724058   6167.70562065
   5927.59755215   5289.08969011   4827.54358272   3072.51886062      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 1
last5MinsDistances.max() = 3072.51886062, last10PointsDistance.max() = 25161.7414568
------------------------------2015-08-21 09:31:27------------------------------
last5MinsDistances = [ 3072.95482258     3.76164523] with length 2
last10PointsDistances = [ 24855.81447267   7901.53061363   6168.01680867   5927.84444368
   5289.30473917   4827.62096269   3072.95482258      3.76164523      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 2
last5MinsDistances.max() = 3072.95482258, last10PointsDistance.max() = 24855.8144727
------------------------------2015-08-21 09:32:29------------------------------
last5MinsDistances = [ 107.70368842  107.32690507] with length 2
last10PointsDistances = [ 7998.96561549  6275.34371132  6035.15627112  5396.59783052  4934.74646194
  3180.22230307   107.70368842   107.32690507     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 2
last5MinsDistances.max() = 107.703688419, last10PointsDistance.max() = 7998.96561549
------------------------------2015-08-21 09:32:39------------------------------
last5MinsDistances = [ 105.15130014  104.80759541    2.70433016] with length 3
last10PointsDistances = [ 6272.81976995  6032.64903031  5394.09903726  4932.2862491   3177.66819169
   105.15130014   104.80759541     2.70433016     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 3
last5MinsDistances.max() = 105.151300143, last10PointsDistance.max() = 6272.81976995
------------------------------2015-08-21 09:33:27------------------------------
last5MinsDistances = [ 96.00187548  95.66746741  11.73894349   9.14975758] with length 4
last10PointsDistances = [ 6023.51134986  5384.96555826  4923.17817062  3168.51845499    96.00187548
    95.66746741    11.73894349     9.14975758     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 4
last5MinsDistances.max() = 96.0018754783, last10PointsDistance.max() = 6023.51134986
------------------------------2015-08-21 09:33:57------------------------------
last5MinsDistances = [ 145.7077213   144.74373184   42.60789646   45.25128062   53.31035413] with length 5
last10PointsDistances = [ 5431.53732883  4968.80056957  3216.53453689   145.7077213    144.74373184
    42.60789646    45.25128062    53.31035413     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 5
last5MinsDistances.max() = 145.707721296, last10PointsDistance.max() = 5431.53732883
------------------------------2015-08-21 09:34:27------------------------------
last5MinsDistances = [ 144.79216417  142.9177878    63.44673306   65.28907411   69.61659165
   37.85146922] with length 6
last10PointsDistances = [ 4954.22537837  3205.41915165   144.79216417   142.9177878     63.44673306
    65.28907411    69.61659165    37.85146922     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 144.792164169, last10PointsDistance.max() = 4954.22537837
------------------------------2015-08-21 09:34:57------------------------------
last5MinsDistances = [ 152.63556986  150.5907522    74.46422851   76.28698613   80.45225893
   47.0647993    11.03016871] with length 7
last10PointsDistances = [ 3209.37858647   152.63556986   150.5907522     74.46422851    76.28698613
    80.45225893    47.0647993     11.03016871     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 152.635569864, last10PointsDistance.max() = 3209.37858647
------------------------------2015-08-21 09:35:27------------------------------
last5MinsDistances = [ 222.57418812  219.81360143  157.62106815  159.43439393  163.28380186
  125.50226502   94.17589158   83.15720523] with length 8
last10PointsDistances = [ 222.57418812  219.81360143  157.62106815  159.43439393  163.28380186
  125.50226502   94.17589158   83.15720523    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 222.574188117, last10PointsDistance.max() = 222.574188117
------------------------------2015-08-21 09:35:57------------------------------
last5MinsDistances = [ 241.74565667  162.32471165  164.6054149   170.47309787  123.21715964
  102.45055353   92.80633008   43.38535314] with length 8
last10PointsDistances = [ 241.74565667  162.32471165  164.6054149   170.47309787  123.21715964
  102.45055353   92.80633008   43.38535314    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 241.745656673, last10PointsDistance.max() = 241.745656673
------------------------------2015-08-21 09:36:27------------------------------
last5MinsDistances = [ 142.76332592  144.58092226  148.47457068  110.93042937   79.3174741
   68.30019874   14.85941384   45.26720307] with length 8
last10PointsDistances = [ 142.76332592  144.58092226  148.47457068  110.93042937   79.3174741
   68.30019874   14.85941384   45.26720307    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 148.474570677, last10PointsDistance.max() = 148.474570677
------------------------------2015-08-21 09:37:58------------------------------
last5MinsDistances = [ 551.35568258  522.87696872  487.91093314  477.23253015  398.68625269
  417.22434337  412.67146627] with length 7
last10PointsDistances = [ 550.02607706  551.35568258  522.87696872  487.91093314  477.23253015
  398.68625269  417.22434337  412.67146627    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 551.355682575, last10PointsDistance.max() = 551.355682575
------------------------------2015-08-21 09:38:28------------------------------
last5MinsDistances = [ 522.82427191  487.85794319  477.17959522  398.63403213  417.17361821
  412.61908812    0.05382684] with length 7
last10PointsDistances = [ 551.30225129  522.82427191  487.85794319  477.17959522  398.63403213
  417.17361821  412.61908812    0.05382684    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 522.824271913, last10PointsDistance.max() = 551.302251288
------------------------------2015-08-21 09:38:59------------------------------
last5MinsDistances = [ 328.76428594  317.7346819   234.77243295  243.18828916  249.60378563
  185.89222479  185.8481472 ] with length 7
last10PointsDistances = [ 359.66899666  328.76428594  317.7346819   234.77243295  243.18828916
  249.60378563  185.89222479  185.8481472     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 328.764285936, last10PointsDistance.max() = 359.668996655
------------------------------2015-08-21 09:39:28------------------------------
last5MinsDistances = [ 317.79100973  234.78790903  242.83477598  249.62654359  187.15740577
  187.11360253    2.07601855] with length 7
last10PointsDistances = [ 328.82110301  317.79100973  234.78790903  242.83477598  249.62654359
  187.15740577  187.11360253    2.07601855    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 317.791009732, last10PointsDistance.max() = 328.821103007
------------------------------2015-08-21 09:39:58------------------------------
last5MinsDistances = [ 278.41554123  279.018414    293.19588906  192.96533758  192.93337321
   61.4307368    59.85625894] with length 7
last10PointsDistances = [ 361.31576574  278.41554123  279.018414    293.19588906  192.96533758
  192.93337321   61.4307368    59.85625894    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 293.195889063, last10PointsDistance.max() = 361.315765744
------------------------------2015-08-21 09:40:28------------------------------
last5MinsDistances = [ 363.22829016  374.07707318  141.23359302  141.22218428  126.22277614
  125.80390452   86.3816527 ] with length 7
last10PointsDistances = [ 359.21827778  363.22829016  374.07707318  141.23359302  141.22218428
  126.22277614  125.80390452   86.3816527     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 374.077073181, last10PointsDistance.max() = 374.077073181
------------------------------2015-08-21 09:42:58------------------------------
last5MinsDistances = [ 227.57102011  258.84808994  258.09254133  206.88610324  135.93043578] with length 5
last10PointsDistances = [ 483.08485259  499.80532895  227.55101415  227.57102011  258.84808994
  258.09254133  206.88610324  135.93043578    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 5
last5MinsDistances.max() = 258.848089938, last10PointsDistance.max() = 499.805328948
------------------------------2015-08-21 09:45:29------------------------------
last5MinsDistances = [ 219.02364952] with length 1
last10PointsDistances = [ 694.17024078  438.38915435  438.41814839  468.85010484  467.75938826
  410.92443053  352.59203483  219.02364952    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 1
last5MinsDistances.max() = 219.023649524, last10PointsDistance.max() = 694.170240783
------------------------------2015-08-21 09:45:59------------------------------
last5MinsDistances = [ 220.93664868    9.1768169 ] with length 2
last10PointsDistances = [ 441.91792086  441.94603675  468.73583202  467.61071102  410.39530748
  353.61454936  220.93664868    9.1768169     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 2
last5MinsDistances.max() = 220.936648679, last10PointsDistance.max() = 468.735832017
------------------------------2015-08-21 09:46:33------------------------------
last5MinsDistances = [ 216.19955523    2.93557308    9.39430927] with length 3
last10PointsDistances = [ 435.80295841  465.92036279  464.82896751  407.9892473   349.70632652
  216.19955523    2.93557308    9.39430927    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 3
last5MinsDistances.max() = 216.199555228, last10PointsDistance.max() = 465.920362787
------------------------------2015-08-21 09:47:17------------------------------
last5MinsDistances = [ 240.2703328    37.85581156   45.18482198   40.01514525] with length 4
last10PointsDistances = [ 495.10642856  494.11732503  438.48450781  375.7598133   240.2703328
   37.85581156   45.18482198   40.01514525    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 4
last5MinsDistances.max() = 240.270332799, last10PointsDistance.max() = 495.106428562
------------------------------2015-08-21 09:48:02------------------------------
last5MinsDistances = [ 87.20348979  94.8519037   89.1207819   49.69134801] with length 4
last10PointsDistances = [ 524.51869418  470.83204129  402.77179398  267.02981118   87.20348979
   94.8519037    89.1207819    49.69134801    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 4
last5MinsDistances.max() = 94.8519037009, last10PointsDistance.max() = 524.518694182
------------------------------2015-08-21 09:48:33------------------------------
last5MinsDistances = [ 93.53368181  98.8410685   96.13087631  58.0689218   34.66285179] with length 5
last10PointsDistances = [ 494.72863777  429.56314687  293.64267627   93.53368181   98.8410685
   96.13087631   58.0689218    34.66285179    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 5
last5MinsDistances.max() = 98.8410685044, last10PointsDistance.max() = 494.728637768
------------------------------2015-08-21 09:49:03------------------------------
last5MinsDistances = [ 105.48236532  110.3338962   108.15109462   70.82826013   45.36256668
   13.20930495] with length 6
last10PointsDistances = [ 442.74136839  306.81710731  105.48236532  110.3338962   108.15109462
   70.82826013   45.36256668   13.20930495    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 110.333896203, last10PointsDistance.max() = 442.741368394
------------------------------2015-08-21 09:50:02------------------------------
last5MinsDistances = [ 117.13772163  123.33546156  119.52587255   79.84541101   38.73931191
   27.543822     24.33007305] with length 7
last10PointsDistances = [ 305.75804879  117.13772163  123.33546156  119.52587255   79.84541101
   38.73931191   27.543822     24.33007305    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 123.335461564, last10PointsDistance.max() = 305.758048791
------------------------------2015-08-21 09:50:33------------------------------
last5MinsDistances = [ 123.15578134  119.55505424   80.04753862   40.37165221   26.27802482
   21.9257382     2.93765263] with length 7
last10PointsDistances = [ 117.12526131  123.15578134  119.55505424   80.04753862   40.37165221
   26.27802482   21.9257382     2.93765263    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 123.155781344, last10PointsDistance.max() = 123.155781344
------------------------------2015-08-21 09:51:03------------------------------
last5MinsDistances = [ 120.16580916   80.55920559   40.00292578   27.50212315   23.57648837
    1.49468455    1.70745755] with length 7
last10PointsDistances = [ 123.87831889  120.16580916   80.55920559   40.00292578   27.50212315
   23.57648837    1.49468455    1.70745755    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 120.165809161, last10PointsDistance.max() = 123.878318893
------------------------------2015-08-21 09:51:33------------------------------
last5MinsDistances = [ 79.37478182  39.96388579  25.52839604  21.29118215   3.28309356
   0.74991536   2.28535959] with length 7
last10PointsDistances = [ 118.86195881   79.37478182   39.96388579   25.52839604   21.29118215
    3.28309356    0.74991536    2.28535959    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 79.374781824, last10PointsDistance.max() = 118.861958809
------------------------------2015-08-21 09:52:04------------------------------
last5MinsDistances = [ 83.49379776  41.15743196  31.59838463  27.82545887   4.06502907
   5.90203066   4.30035674   6.56295834] with length 8
last10PointsDistances = [ 83.49379776  41.15743196  31.59838463  27.82545887   4.06502907
   5.90203066   4.30035674   6.56295834   0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 83.4937977634, last10PointsDistance.max() = 83.4937977634
Found trip end at 2015-08-21 09:47:17
------------------------------2015-08-21 17:13:36------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 17:14:21------------------------------
last5MinsDistances = [ 157.30317582] with length 1
last10PointsDistances = [ 157.30317582    0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 17:14:37------------------------------
last5MinsDistances = [ 162.52176243   39.37178676] with length 2
last10PointsDistances = [ 162.52176243   39.37178676    0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 17:31:30------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 3429.9357903   3317.05172418  3289.02255652     0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 17:31:51------------------------------
last5MinsDistances = [ 781.47022826] with length 1
last10PointsDistances = [ 4143.22299517  4039.81014067  4009.60410432   781.47022826     0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 17:35:39------------------------------
last5MinsDistances = [ 2498.5404919   1725.20699375] with length 2
last10PointsDistances = [ 5842.50763176  5745.99633662  5714.46875317  2498.5404919   1725.20699375
     0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 17:42:11------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 8508.02390989  8399.76007445  8370.79946472  5085.46208556  4369.47371871
  2747.62500086     0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 17:42:41------------------------------
last5MinsDistances = [ 391.41065176] with length 1
last10PointsDistances = [ 8428.84923519  8315.50630864  8287.79818112  4998.99820837  4311.15663477
  2766.03112697   391.41065176     0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 17:43:41------------------------------
last5MinsDistances = [ 1175.90154926   784.9471805 ] with length 2
last10PointsDistances = [ 8369.75504296  8246.69001165  8221.74865016  4962.15877774  4346.62352931
  3005.27847869  1175.90154926   784.9471805      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 2
last5MinsDistances.max() = 1175.90154926, last10PointsDistance.max() = 8369.75504296
------------------------------2015-08-21 17:44:11------------------------------
last5MinsDistances = [ 1192.44433282   801.65993334    18.46625643] with length 3
last10PointsDistances = [ 8253.9637928   8229.08520288  4970.65228851  4356.77089307  3019.54961947
  1192.44433282   801.65993334    18.46625643     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 3
last5MinsDistances.max() = 1192.44433282, last10PointsDistance.max() = 8253.9637928
------------------------------2015-08-21 17:44:41------------------------------
last5MinsDistances = [ 1856.04874213  1465.24778699   680.31231406   663.62164973] with length 4
last10PointsDistances = [ 8230.34107557  5035.46321479  4494.77975548  3354.82987321  1856.04874213
  1465.24778699   680.31231406   663.62164973     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 4
last5MinsDistances.max() = 1856.04874213, last10PointsDistance.max() = 8230.34107557
------------------------------2015-08-21 18:06:16------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 19954.16566552  19576.18820405  18566.38696817  16271.16462206
  16052.46533728  15595.17478501  15579.19748821  15215.8953924       0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 18:08:48------------------------------
last5MinsDistances = [ 1635.8205555] with length 1
last10PointsDistances = [ 21033.36922266  19968.22726401  17600.66644553  17400.44462294
  16978.63996731  16963.18216444  16629.64699799   1635.8205555       0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 1
last5MinsDistances.max() = 1635.8205555, last10PointsDistance.max() = 21033.3692227
------------------------------2015-08-21 18:09:04------------------------------
last5MinsDistances = [ 1638.4984794      3.05031849] with length 2
last10PointsDistances = [ 19969.82464647  17602.06630444  17401.89630517  16980.19387658
  16964.73763606  16631.29117841   1638.4984794       3.05031849      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 2
last5MinsDistances.max() = 1638.4984794, last10PointsDistance.max() = 19969.8246465
------------------------------2015-08-21 18:10:47------------------------------
last5MinsDistances = [ 3128.2770931   1711.48244541  1710.45802689] with length 3
last10PointsDistances = [ 19298.29219314  19093.81380344  18661.79698875  18646.16521467
  18301.67517099   3128.2770931    1711.48244541   1710.45802689      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 3
last5MinsDistances.max() = 3128.2770931, last10PointsDistance.max() = 19298.2921931
------------------------------2015-08-21 18:12:48------------------------------
last5MinsDistances = [ 2435.18095363  2433.37840398   932.92433878] with length 3
last10PointsDistances = [ 19815.65683293  19403.53951453  19388.20696664  19060.54213407
   3977.42353643   2435.18095363   2433.37840398    932.92433878      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 3
last5MinsDistances.max() = 2435.18095363, last10PointsDistance.max() = 19815.6568329
------------------------------2015-08-21 18:25:48------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 24258.23550138  24251.10731866  24294.69593961  15132.08719691
  13957.7384185   13954.83376309  14005.97152105  13386.74417793      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 18:26:18------------------------------
last5MinsDistances = [ 8.10934873] with length 1
last10PointsDistances = [ 24251.86302113  24295.23111296  15127.65274679  13952.78601747
  13949.88093377  14000.27180098  13380.75798707      8.10934873      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 1
last5MinsDistances.max() = 8.10934872508, last10PointsDistance.max() = 24295.231113
------------------------------2015-08-21 18:26:48------------------------------
last5MinsDistances = [  6.33026652  14.36074881] with length 2
last10PointsDistances = [ 24292.96790042  15134.36602216  13960.47271656  13957.56844235
  14009.38254867  13390.42245014      6.33026652     14.36074881      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 2
last5MinsDistances.max() = 14.3607488058, last10PointsDistance.max() = 24292.9679004
------------------------------2015-08-21 18:27:18------------------------------
last5MinsDistances = [ 182.32392442  174.75203888  187.68840309] with length 3
last10PointsDistances = [ 14985.5759159   13803.16841652  13800.25734306  13840.6938691
  13217.74654958    182.32392442    174.75203888    187.68840309      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 3
last5MinsDistances.max() = 187.688403088, last10PointsDistance.max() = 14985.5759159
------------------------------2015-08-21 18:27:48------------------------------
last5MinsDistances = [   7.27253821    4.66400707   12.48786658  175.28420766] with length 4
last10PointsDistances = [ 13950.80582578  13947.90102374  13998.82240398  13379.53636686
      7.27253821      4.66400707     12.48786658    175.28420766      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 4
last5MinsDistances.max() = 175.284207657, last10PointsDistance.max() = 13998.822404
------------------------------2015-08-21 18:28:18------------------------------
last5MinsDistances = [   1.43408477    6.88649054    7.47467637  180.90469071    5.84831836] with length 5
last10PointsDistances = [ 13953.51969345  14004.59717412  13385.35074862      1.43408477
      6.88649054      7.47467637    180.90469071      5.84831836      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 5
last5MinsDistances.max() = 180.904690705, last10PointsDistance.max() = 14004.5971741
------------------------------2015-08-21 18:28:48------------------------------
last5MinsDistances = [   3.63454517    7.98043054    8.61659391  182.7073832     9.16249483
    4.21153577] with length 6
last10PointsDistances = [ 14007.80581197  13388.41626857      3.63454517      7.98043054
      8.61659391    182.7073832       9.16249483      4.21153577      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 182.707383203, last10PointsDistance.max() = 14007.805812
------------------------------2015-08-21 18:29:18------------------------------
last5MinsDistances = [  22.83064273   15.01011005   29.16084631  163.62050866   18.65990264
   21.770388     21.40322228] with length 7
last10PointsDistances = [ 13373.58858457     22.83064273     15.01011005     29.16084631
    163.62050866     18.65990264     21.770388       21.40322228      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 163.620508657, last10PointsDistance.max() = 13373.5885846
------------------------------2015-08-21 18:29:48------------------------------
last5MinsDistances = [   9.78813606    2.29268131   16.11601362  173.96755783    6.90708147
    8.71678373    8.88006429   13.0564077 ] with length 8
last10PointsDistances = [   9.78813606    2.29268131   16.11601362  173.96755783    6.90708147
    8.71678373    8.88006429   13.0564077     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 173.967557832, last10PointsDistance.max() = 173.967557832
------------------------------2015-08-21 18:30:48------------------------------
last5MinsDistances = [  18.19726429   31.74567139  164.32940587   22.30284094   24.59688202
   23.49633591    4.72588258   16.01964534] with length 8
last10PointsDistances = [  18.19726429   31.74567139  164.32940587   22.30284094   24.59688202
   23.49633591    4.72588258   16.01964534    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 164.329405872, last10PointsDistance.max() = 164.329405872
------------------------------2015-08-21 18:31:18------------------------------
last5MinsDistances = [ 107.11021874  289.78485053  119.18537422  114.57909934  114.53881724
  135.93868948  123.07904474  137.75398748] with length 8
last10PointsDistances = [ 107.11021874  289.78485053  119.18537422  114.57909934  114.53881724
  135.93868948  123.07904474  137.75398748    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 289.784850532, last10PointsDistance.max() = 289.784850532
------------------------------2015-08-21 18:36:19------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 6737.64007692  6562.49392646  6556.95172925  6555.38197376  6575.33212951
  6564.21550348  6575.29604297  6449.61167903     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 18:36:49------------------------------
last5MinsDistances = [ 451.10133379] with length 1
last10PointsDistances = [ 7011.24347332  7005.68871806  7004.09232531  7023.98873022  7012.91943315
  7023.91992259  6898.61795763   451.10133379     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 1
last5MinsDistances.max() = 451.101333786, last10PointsDistance.max() = 7023.98873022
------------------------------2015-08-21 18:37:19------------------------------
last5MinsDistances = [ 1137.87452312   698.75670625] with length 2
last10PointsDistances = [ 7655.34383829  7653.61141327  7673.21791322  7662.39900194  7672.98272648
  7549.77212678  1137.87452312   698.75670625     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 2
last5MinsDistances.max() = 1137.87452312, last10PointsDistance.max() = 7673.21791322
------------------------------2015-08-21 18:38:49------------------------------
last5MinsDistances = [ 9895307.50036882  9895758.38076916  9896432.80160611] with length 3
last10PointsDistances = [ 9888814.24531774  9888795.5550954   9888805.62035426  9888796.24712146
  9888913.17125241  9895307.50036882  9895758.38076916  9896432.80160611
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 3
last5MinsDistances.max() = 9896432.80161, last10PointsDistance.max() = 9896432.80161
------------------------------2015-08-21 18:41:49------------------------------
last5MinsDistances = [    3670.79600819  9899959.04958135] with length 2
last10PointsDistances = [   11166.95112531    11157.09917679    11166.14397245    11051.29568475
     4801.01988422     4369.4691716      3670.79600819  9899959.04958135
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 2
last5MinsDistances.max() = 9899959.04958, last10PointsDistance.max() = 9899959.04958
------------------------------2015-08-21 18:42:19------------------------------
last5MinsDistances = [ 9900712.94505599      753.90796359] with length 2
last10PointsDistances = [   11910.86740979    11919.92834447    11804.97318552     5535.52634483
     5099.49115443     4401.0021063   9900712.94505599      753.90796359
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 2
last5MinsDistances.max() = 9900712.94506, last10PointsDistance.max() = 9900712.94506
------------------------------2015-08-21 18:43:19------------------------------
last5MinsDistances = [ 9902349.34228882     2398.72217601     1648.16258018] with length 3
last10PointsDistances = [   13561.38383784    13447.29710017     7177.63480273     6738.7767045
     6041.19255144  9902349.34228882     2398.72217601     1648.16258018
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 3
last5MinsDistances.max() = 9902349.34229, last10PointsDistance.max() = 9902349.34229
------------------------------2015-08-21 18:43:49------------------------------
last5MinsDistances = [ 3380.30478277  2631.64815747   984.37773411] with length 3
last10PointsDistances = [   14423.61026532     8161.8132272      7722.583333       7025.18618129
  9903318.9638942      3380.30478277     2631.64815747      984.37773411
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 3
last5MinsDistances.max() = 3380.30478277, last10PointsDistance.max() = 9903318.96389
------------------------------2015-08-21 18:44:19------------------------------
last5MinsDistances = [ 4350.17442693  3600.65491427  1952.52874907   970.1393025 ] with length 4
last10PointsDistances = [    9126.79649941     8686.30969422     7989.58211109  9904285.75190349
     4350.17442693     3600.65491427     1952.52874907      970.1393025
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 4
last5MinsDistances.max() = 4350.17442693, last10PointsDistance.max() = 9904285.7519
------------------------------2015-08-21 18:48:19------------------------------
last5MinsDistances = [ 10471.37028604   9497.38213637   8529.35370497] with length 3
last10PointsDistances = [   17147.47481481    16458.17378588  9912814.32661586    12867.75617881
    12114.43516026    10471.37028604     9497.38213637     8529.35370497
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 3
last5MinsDistances.max() = 10471.370286, last10PointsDistance.max() = 9912814.32662
------------------------------2015-08-21 18:50:19------------------------------
last5MinsDistances = [ 2109.48576941] with length 1
last10PointsDistances = [   18543.29700819  9914919.35728102    14966.47311641    14212.77420093
    12572.09395087    11600.54250198    10633.62762263     2109.48576941
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 1
last5MinsDistances.max() = 2109.48576941, last10PointsDistance.max() = 9914919.35728
------------------------------2015-08-21 18:51:19------------------------------
last5MinsDistances = [ 2163.06615163   173.33974567] with length 2
last10PointsDistances = [ 9914977.23206724    15029.88289531    14276.42574155    12633.97309858
    11660.38565393    10692.41834075     2163.06615163      173.33974567
        0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 2
last5MinsDistances.max() = 2163.06615163, last10PointsDistance.max() = 9914977.23207
------------------------------2015-08-21 18:55:20------------------------------
last5MinsDistances = [ 5174.21012328] with length 1
last10PointsDistances = [ 20185.69863222  19431.82016243  17793.53291495  16823.86874053
  15857.70012196   7333.48503722   5225.1159304    5174.21012328      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 1
last5MinsDistances.max() = 5174.21012328, last10PointsDistance.max() = 20185.6986322
------------------------------2015-08-21 18:59:50------------------------------
last5MinsDistances = [ 4384.75990705] with length 1
last10PointsDistances = [ 23770.20884477  22138.00643733  21173.78017236  20210.60192583
  11702.00964322   9592.74916143   9549.77862844   4384.75990705      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 1
last5MinsDistances.max() = 4384.75990705, last10PointsDistance.max() = 23770.2088448
------------------------------2015-08-21 19:01:20------------------------------
last5MinsDistances = [ 128.91710541] with length 1
last10PointsDistances = [ 22009.27737879  21044.99267864  20081.78398925  11573.09254956
   9463.83245957   9420.88773852   4256.14682655    128.91710541      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 1
last5MinsDistances.max() = 128.917105406, last10PointsDistance.max() = 22009.2773788
------------------------------2015-08-21 19:01:50------------------------------
last5MinsDistances = [ 182.30319832   61.40692524] with length 2
last10PointsDistances = [ 20996.87721545  20033.45584979  11523.34892029   9413.99510887
   9370.41887763   4204.07579551    182.30319832     61.40692524      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 2
last5MinsDistances.max() = 182.303198317, last10PointsDistance.max() = 20996.8772154
------------------------------2015-08-21 19:02:20------------------------------
last5MinsDistances = [ 171.94697016   45.61258421   19.98624099] with length 3
last10PointsDistances = [ 20040.37035952  11530.97134338   9421.66266229   9378.41483846
   4212.916342      171.94697016     45.61258421     19.98624099      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 3
last5MinsDistances.max() = 171.94697016, last10PointsDistance.max() = 20040.3703595
------------------------------2015-08-21 19:02:50------------------------------
last5MinsDistances = [ 184.41591948   55.51796792   34.63059302   20.61356058] with length 4
last10PointsDistances = [ 11517.6028721    9408.33781206   9365.37322019   4200.67011789
    184.41591948     55.51796792     34.63059302     20.61356058      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 4
last5MinsDistances.max() = 184.415919479, last10PointsDistance.max() = 11517.6028721
------------------------------2015-08-21 19:03:20------------------------------
last5MinsDistances = [ 207.48284761  111.82485829   62.15392086   81.33703958   96.18624017] with length 5
last10PointsDistances = [ 9410.08755899  9365.40462492  4196.50103179   207.48284761   111.82485829
    62.15392086    81.33703958    96.18624017     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 5
last5MinsDistances.max() = 207.482847614, last10PointsDistance.max() = 9410.08755899
------------------------------2015-08-21 19:03:50------------------------------
last5MinsDistances = [ 312.89847364  219.12109579  161.89727135  181.76115285  190.15048078
  109.0827744 ] with length 6
last10PointsDistances = [ 9289.91328783  4118.49421759   312.89847364   219.12109579   161.89727135
   181.76115285   190.15048078   109.0827744      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 6
last5MinsDistances.max() = 312.898473635, last10PointsDistance.max() = 9289.91328783
------------------------------2015-08-21 19:04:20------------------------------
last5MinsDistances = [ 366.88025907  262.96621693  202.36597454  221.13738916  224.8973041
  159.59759487   60.57938857] with length 7
last10PointsDistances = [ 4058.02314993   366.88025907   262.96621693   202.36597454   221.13738916
   224.8973041    159.59759487    60.57938857     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 366.880259068, last10PointsDistance.max() = 4058.02314993
------------------------------2015-08-21 19:04:50------------------------------
last5MinsDistances = [ 360.61618856  310.00974351  329.89462321  341.4602419   249.76661437
  156.15647353  158.89608877] with length 7
last10PointsDistances = [ 427.04928567  360.61618856  310.00974351  329.89462321  341.4602419
  249.76661437  156.15647353  158.89608877    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 7
last5MinsDistances.max() = 360.616188555, last10PointsDistance.max() = 427.049285672
------------------------------2015-08-21 19:05:20------------------------------
last5MinsDistances = [ 397.23058105  347.90012123  367.71040457  379.75598762  287.10488665
  195.4683131   196.62018885   39.37331265] with length 8
last10PointsDistances = [ 397.23058105  347.90012123  367.71040457  379.75598762  287.10488665
  195.4683131   196.62018885   39.37331265    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 397.230581047, last10PointsDistance.max() = 397.230581047
------------------------------2015-08-21 19:05:50------------------------------
last5MinsDistances = [ 504.74701964  456.88709808  476.61016848  489.06107797  395.65775478
  304.82089551  300.7171218   148.71941881  109.61617099] with length 9
last10PointsDistances = [ 456.88709808  476.61016848  489.06107797  395.65775478  304.82089551
  300.7171218   148.71941881  109.61617099    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 504.747019637, last10PointsDistance.max() = 489.061077974
------------------------------2015-08-21 19:06:20------------------------------
last5MinsDistances = [ 463.86838322  483.55856905  496.16262614  402.52556744  312.41287488
  308.85306401  156.26430295  117.04587449    8.37030021] with length 9
last10PointsDistances = [ 483.55856905  496.16262614  402.52556744  312.41287488  308.85306401
  156.26430295  117.04587449    8.37030021    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 496.162626143, last10PointsDistance.max() = 496.162626143
------------------------------2015-08-21 19:06:50------------------------------
last5MinsDistances = [ 562.60621622  574.5864424   481.89322312  388.30530252  378.56132986
  233.20836905  194.90360876   87.04797317   81.22021065] with length 9
last10PointsDistances = [ 574.5864424   481.89322312  388.30530252  378.56132986  233.20836905
  194.90360876   87.04797317   81.22021065    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 574.586442401, last10PointsDistance.max() = 574.586442401
------------------------------2015-08-21 19:07:21------------------------------
last5MinsDistances = [ 581.94110845  488.78761873  396.443661    387.98871927  240.86908517
  202.20024905   93.17506201   86.65519766   12.13488233] with length 9
last10PointsDistances = [ 488.78761873  396.443661    387.98871927  240.86908517  202.20024905
   93.17506201   86.65519766   12.13488233    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 581.94110845, last10PointsDistance.max() = 488.787618729
------------------------------2015-08-21 19:07:51------------------------------
last5MinsDistances = [ 595.18056463  499.93276623  486.27152161  345.9296424   308.07716378
  200.60474893  194.51746955  113.59910839  108.17740762] with length 9
last10PointsDistances = [ 499.93276623  486.27152161  345.9296424   308.07716378  200.60474893
  194.51746955  113.59910839  108.17740762    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 595.180564635, last10PointsDistance.max() = 499.932766232
------------------------------2015-08-21 19:08:21------------------------------
last5MinsDistances = [ 533.7612663   507.58199121  390.74477948  357.76481456  264.77701447
  261.51194704  187.21160205  188.77997099  114.3140977 ] with length 9
last10PointsDistances = [ 507.58199121  390.74477948  357.76481456  264.77701447  261.51194704
  187.21160205  188.77997099  114.3140977     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 533.761266297, last10PointsDistance.max() = 507.581991207
------------------------------2015-08-21 19:08:51------------------------------
last5MinsDistances = [ 542.69909932  436.09280743  405.1775253   317.74196191  315.13229306
  243.6401943   245.98295826  171.09609735   58.50619403] with length 9
last10PointsDistances = [ 436.09280743  405.1775253   317.74196191  315.13229306  243.6401943
  245.98295826  171.09609735   58.50619403    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 542.699099324, last10PointsDistance.max() = 436.092807428
------------------------------2015-08-21 19:09:21------------------------------
last5MinsDistances = [ 526.37466602  491.98872547  392.89216126  388.39030606  308.73436428
  306.82023637  204.81108292  138.28555743  115.07276115] with length 9
last10PointsDistances = [ 491.98872547  392.89216126  388.39030606  308.73436428  306.82023637
  204.81108292  138.28555743  115.07276115    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 526.374666019, last10PointsDistance.max() = 491.988725473
------------------------------2015-08-21 19:09:42------------------------------
last5MinsDistances = [ 528.01922961  493.67196477  394.6716906   390.18414692  310.56201286
  308.67345481  206.73434555  139.7340934   115.84932788    1.95505026] with length 10
last10PointsDistances = [ 394.6716906   390.18414692  310.56201286  308.67345481  206.73434555
  139.7340934   115.84932788    1.95505026    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 10
last5MinsDistances.max() = 528.01922961, last10PointsDistance.max() = 394.6716906
------------------------------2015-08-21 19:10:28------------------------------
last5MinsDistances = [ 394.60744331  390.12037276  310.49954303  308.61218385  206.67830232
  139.66509091  115.78428611    1.90781371    0.06919584] with length 9
last10PointsDistances = [ 390.12037276  310.49954303  308.61218385  206.67830232  139.66509091
  115.78428611    1.90781371    0.06919584    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 394.607443307, last10PointsDistance.max() = 390.120372762
------------------------------2015-08-21 19:10:58------------------------------
last5MinsDistances = [ 390.46497412  310.67573438  308.6427828   206.18093482  141.21023076
  118.59940585    3.59574294    3.73367615    3.76545657] with length 9
last10PointsDistances = [ 310.67573438  308.6427828   206.18093482  141.21023076  118.59940585
    3.59574294    3.73367615    3.76545657    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 390.464974125, last10PointsDistance.max() = 310.675734381
------------------------------2015-08-21 19:11:28------------------------------
last5MinsDistances = [ 304.50572049  302.70581731  201.18159247  133.31162681  110.11420086
    5.08784617    6.42599682    6.357202      8.49825394] with length 9
last10PointsDistances = [ 302.70581731  201.18159247  133.31162681  110.11420086    5.08784617
    6.42599682    6.357202      8.49825394    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 304.505720487, last10PointsDistance.max() = 302.705817312
------------------------------2015-08-21 19:11:58------------------------------
last5MinsDistances = [ 310.85237803  208.17260115  143.8229207   121.16392813    6.09145058
    5.64403902    5.69715386    2.64813495   11.105535  ] with length 9
last10PointsDistances = [ 208.17260115  143.8229207   121.16392813    6.09145058    5.64403902
    5.69715386    2.64813495   11.105535      0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 310.85237803, last10PointsDistance.max() = 208.172601153
------------------------------2015-08-21 19:12:28------------------------------
last5MinsDistances = [ 207.76729009  143.20512582  120.50625451    5.43433708    5.04184223
    5.09270437    2.0053243    10.44726044    0.65877677] with length 9
last10PointsDistances = [ 143.20512582  120.50625451    5.43433708    5.04184223    5.09270437
    2.0053243    10.44726044    0.65877677    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 207.767290092, last10PointsDistance.max() = 143.205125825
------------------------------2015-08-21 19:12:58------------------------------
last5MinsDistances = [ 145.52394822  122.88689101    7.81766723    7.22120627    7.27914524
    4.3944525    12.85003494    1.74923593    2.4047356 ] with length 9
last10PointsDistances = [ 122.88689101    7.81766723    7.22120627    7.27914524    4.3944525
   12.85003494    1.74923593    2.4047356     0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 145.523948215, last10PointsDistance.max() = 122.886891011
------------------------------2015-08-21 19:13:28------------------------------
last5MinsDistances = [ 115.63372502    1.73529317    0.26317723    0.19715703    3.7965271
    6.16609928    5.79866218    5.18625587    7.39889513] with length 9
last10PointsDistances = [ 1.73529317  0.26317723  0.19715703  3.7965271   6.16609928  5.79866218
  5.18625587  7.39889513  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 115.633725016, last10PointsDistance.max() = 7.39889512852
------------------------------2015-08-21 19:13:58------------------------------
last5MinsDistances = [  5.50142771   4.84877931   4.90569175   2.35600706  10.57399065
   0.92555523   0.72104721   2.37821694   5.0223197 ] with length 9
last10PointsDistances = [  4.84877931   4.90569175   2.35600706  10.57399065   0.92555523
   0.72104721   2.37821694   5.0223197    0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 9
last5MinsDistances.max() = 10.5739906504, last10PointsDistance.max() = 10.5739906504
Found trip end at 2015-08-21 19:09:21
------------------------------2015-08-21 19:14:28------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 19:14:58------------------------------
last5MinsDistances = [ 2.74167953] with length 1
last10PointsDistances = [ 2.74167953  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 19:15:29------------------------------
last5MinsDistances = [ 2.66920462  0.24768754] with length 2
last10PointsDistances = [ 2.66920462  0.24768754  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 19:15:59------------------------------
last5MinsDistances = [ 2.67640275  0.06901702  0.25620205] with length 3
last10PointsDistances = [ 2.67640275  0.06901702  0.25620205  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 19:16:29------------------------------
last5MinsDistances = [ 2.39069092  0.39145982  0.28299598  0.34433276] with length 4
last10PointsDistances = [ 2.39069092  0.39145982  0.28299598  0.34433276  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 19:16:59------------------------------
last5MinsDistances = [ 6.39413003  4.6383115   4.8835509   4.64968716  4.95340105] with length 5
last10PointsDistances = [ 6.39413003  4.6383115   4.8835509   4.64968716  4.95340105  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 19:17:29------------------------------
last5MinsDistances = [ 2.71890352  0.02392952  0.23396504  0.0517758   0.36770042  4.6554287 ] with length 6
last10PointsDistances = [ 2.71890352  0.02392952  0.23396504  0.0517758   0.36770042  4.6554287   0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 19:17:59------------------------------
last5MinsDistances = [ 1.09637878  3.52168668  3.39034051  3.4639795   3.13713388  7.46903042
  3.49780319] with length 7
last10PointsDistances = [ 1.09637878  3.52168668  3.39034051  3.4639795   3.13713388  7.46903042
  3.49780319  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 19:18:29------------------------------
last5MinsDistances = [ 1.4263126   3.6812357   3.53077548  3.62721962  3.29141757  7.75454905
  3.65731631  0.36374967] with length 8
last10PointsDistances = [ 1.4263126   3.6812357   3.53077548  3.62721962  3.29141757  7.75454905
  3.65731631  0.36374967  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 7.75454905413, last10PointsDistance.max() = 7.75454905413
Found trip end at 2015-08-21 19:14:28
------------------------------2015-08-21 19:18:59------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 19:19:29------------------------------
last5MinsDistances = [ 0.1445534] with length 1
last10PointsDistances = [ 0.1445534  0.       ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 19:19:59------------------------------
last5MinsDistances = [ 2.53562912  2.68016177] with length 2
last10PointsDistances = [ 2.53562912  2.68016177  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 19:20:29------------------------------
last5MinsDistances = [ 0.1445534   0.          2.68016177] with length 3
last10PointsDistances = [ 0.1445534   0.          2.68016177  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 19:20:59------------------------------
last5MinsDistances = [ 0.16002982  0.29168799  2.40221658  0.29168799] with length 4
last10PointsDistances = [ 0.16002982  0.29168799  2.40221658  0.29168799  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 19:21:29------------------------------
last5MinsDistances = [ 0.1972021   0.22392005  2.5796547   0.22392005  0.3282411 ] with length 5
last10PointsDistances = [ 0.1972021   0.22392005  2.5796547   0.22392005  0.3282411   0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 19:21:59------------------------------
last5MinsDistances = [ 0.1445534   0.          2.68016177  0.          0.29168799  0.22392005] with length 6
last10PointsDistances = [ 0.1445534   0.          2.68016177  0.          0.29168799  0.22392005
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 19:22:29------------------------------
last5MinsDistances = [ 0.36736841  0.22309066  2.9023086   0.22309066  0.50534391  0.39526601
  0.22309066] with length 7
last10PointsDistances = [ 0.36736841  0.22309066  2.9023086   0.22309066  0.50534391  0.39526601
  0.22309066  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 19:22:59------------------------------
last5MinsDistances = [ 3.27129485  3.40586031  1.27710334  3.40586031  3.11471565  3.37886102
  3.40586031  3.60846891] with length 8
last10PointsDistances = [ 3.27129485  3.40586031  1.27710334  3.40586031  3.11471565  3.37886102
  3.40586031  3.60846891  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 3.60846891284, last10PointsDistance.max() = 3.60846891284
Found trip end at 2015-08-21 19:18:59
------------------------------2015-08-21 19:23:29------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 19:23:59------------------------------
last5MinsDistances = [ 4.50775492] with length 1
last10PointsDistances = [ 4.50775492  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 19:24:29------------------------------
last5MinsDistances = [ 0.8304775   5.14691793] with length 2
last10PointsDistances = [ 0.8304775   5.14691793  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 19:24:59------------------------------
last5MinsDistances = [ 2.36704912  2.29422041  3.12251807] with length 3
last10PointsDistances = [ 2.36704912  2.29422041  3.12251807  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 19:25:29------------------------------
last5MinsDistances = [ 2.59240665  2.47636655  2.98652378  1.75190722] with length 4
last10PointsDistances = [ 2.59240665  2.47636655  2.98652378  1.75190722  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 19:25:59------------------------------
last5MinsDistances = [ 5.48372846  2.29485216  6.27550167  3.17447842  4.3321314 ] with length 5
last10PointsDistances = [ 5.48372846  2.29485216  6.27550167  3.17447842  4.3321314   0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 19:26:29------------------------------
last5MinsDistances = [ 5.67294582  2.53537062  6.47090584  3.38259727  4.57223504  0.24606039] with length 6
last10PointsDistances = [ 5.67294582  2.53537062  6.47090584  3.38259727  4.57223504  0.24606039
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 19:26:59------------------------------
last5MinsDistances = [ 4.50775492  0.          5.14691793  2.29422041  2.47636655  2.29485216
  2.53537062] with length 7
last10PointsDistances = [ 4.50775492  0.          5.14691793  2.29422041  2.47636655  2.29485216
  2.53537062  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 19:27:29------------------------------
last5MinsDistances = [ 4.07301757  0.6904505   4.64942711  2.06770957  1.84046639  2.91332047
  3.15813363  0.6904505 ] with length 8
last10PointsDistances = [ 4.07301757  0.6904505   4.64942711  2.06770957  1.84046639  2.91332047
  3.15813363  0.6904505   0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4.64942711072, last10PointsDistance.max() = 4.64942711072
Found trip end at 2015-08-21 19:23:29
------------------------------2015-08-21 19:27:59------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 19:28:29------------------------------
last5MinsDistances = [ 5.71414569] with length 1
last10PointsDistances = [ 5.71414569  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 19:28:59------------------------------
last5MinsDistances = [ 8.09361695  3.2026089 ] with length 2
last10PointsDistances = [ 8.09361695  3.2026089   0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 19:29:29------------------------------
last5MinsDistances = [ 5.64065537  0.18903138  3.38604714] with length 3
last10PointsDistances = [ 5.64065537  0.18903138  3.38604714  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 19:30:29------------------------------
last5MinsDistances = [ 0.44242357  5.27338279  7.6638583   5.20134325] with length 4
last10PointsDistances = [ 0.44242357  5.27338279  7.6638583   5.20134325  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 19:30:59------------------------------
last5MinsDistances = [ 5.31665842  0.48008945  3.6595627   0.33893889  4.87843786] with length 5
last10PointsDistances = [ 5.31665842  0.48008945  3.6595627   0.33893889  4.87843786  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 19:31:29------------------------------
last5MinsDistances = [ 5.38912113  0.86804004  4.05559315  0.67920897  4.95920191  0.52044962] with length 6
last10PointsDistances = [ 5.38912113  0.86804004  4.05559315  0.67920897  4.95920191  0.52044962
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 19:31:59------------------------------
last5MinsDistances = [ 7.49784641  3.11377129  0.83935659  3.30278473  7.07768206  3.52069424
  3.98078818] with length 7
last10PointsDistances = [ 7.49784641  3.11377129  0.83935659  3.30278473  7.07768206  3.52069424
  3.98078818  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 19:32:30------------------------------
last5MinsDistances = [ 5.3249096   0.47526937  3.65701318  0.33207628  4.88672622  0.00883455
  0.51661135  3.52015107] with length 8
last10PointsDistances = [ 5.3249096   0.47526937  3.65701318  0.33207628  4.88672622  0.00883455
  0.51661135  3.52015107  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 5.32490960244, last10PointsDistance.max() = 5.32490960244
Found trip end at 2015-08-21 19:27:59
------------------------------2015-08-21 19:33:00------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 19:33:30------------------------------
last5MinsDistances = [ 1.60180785] with length 1
last10PointsDistances = [ 1.60180785  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 19:34:00------------------------------
last5MinsDistances = [ 5.65288333  4.40509617] with length 2
last10PointsDistances = [ 5.65288333  4.40509617  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 19:34:30------------------------------
last5MinsDistances = [ 2.15850222  3.4990004   6.49223842] with length 3
last10PointsDistances = [ 2.15850222  3.4990004   6.49223842  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 19:35:00------------------------------
last5MinsDistances = [ 1.07285769  0.97226474  4.58165293  2.57599586] with length 4
last10PointsDistances = [ 1.07285769  0.97226474  4.58165293  2.57599586  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 19:35:30------------------------------
last5MinsDistances = [ 1.60180785  0.          4.40509617  3.4990004   0.97226474] with length 5
last10PointsDistances = [ 1.60180785  0.          4.40509617  3.4990004   0.97226474  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 19:36:00------------------------------
last5MinsDistances = [ 1.93577804  3.07081051  5.87058846  0.62265104  2.11138436  3.07081051] with length 6
last10PointsDistances = [ 1.93577804  3.07081051  5.87058846  0.62265104  2.11138436  3.07081051
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 19:36:30------------------------------
last5MinsDistances = [ 2.74907117  4.2195578   7.33262527  0.84315305  3.33926835  4.2195578
  1.46229324] with length 7
last10PointsDistances = [ 2.74907117  4.2195578   7.33262527  0.84315305  3.33926835  4.2195578
  1.46229324  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 19:37:00------------------------------
last5MinsDistances = [ 1.1367002   0.99280819  4.52059955  2.58541738  0.0715458   0.99280819
  2.10832819  3.35703098] with length 8
last10PointsDistances = [ 1.1367002   0.99280819  4.52059955  2.58541738  0.0715458   0.99280819
  2.10832819  3.35703098  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4.52059954732, last10PointsDistance.max() = 4.52059954732
Found trip end at 2015-08-21 19:33:00
------------------------------2015-08-21 19:37:30------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 19:38:00------------------------------
last5MinsDistances = [ 7.79684793] with length 1
last10PointsDistances = [ 7.79684793  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 19:38:30------------------------------
last5MinsDistances = [ 7.21605563  0.58108164] with length 2
last10PointsDistances = [ 7.21605563  0.58108164  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 19:39:00------------------------------
last5MinsDistances = [ 0.57608445  8.32977395  7.74972488] with length 3
last10PointsDistances = [ 0.57608445  8.32977395  7.74972488  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 19:39:30------------------------------
last5MinsDistances = [ 7.47037451  0.37700149  0.30230395  8.0084865 ] with length 4
last10PointsDistances = [ 7.47037451  0.37700149  0.30230395  8.0084865   0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 19:40:00------------------------------
last5MinsDistances = [ 2.88241301  5.59763963  5.03709621  3.45158769  5.23113418] with length 5
last10PointsDistances = [ 2.88241301  5.59763963  5.03709621  3.45158769  5.23113418  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 19:40:30------------------------------
last5MinsDistances = [ 3.5099553   5.61977836  5.08679558  4.06297646  5.24450398  0.76252713] with length 6
last10PointsDistances = [ 3.5099553   5.61977836  5.08679558  4.06297646  5.24450398  0.76252713
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 19:41:00------------------------------
last5MinsDistances = [ 3.30309976  5.57734104  5.03385138  3.86270108  5.20420195  0.50388899
  0.26022481] with length 7
last10PointsDistances = [ 3.30309976  5.57734104  5.03385138  3.86270108  5.20420195  0.50388899
  0.26022481  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 19:41:30------------------------------
last5MinsDistances = [ 2.99990667  5.68188495  5.12788207  3.56243273  5.31218008  0.23045105
  0.55682804  0.31134579] with length 8
last10PointsDistances = [ 2.99990667  5.68188495  5.12788207  3.56243273  5.31218008  0.23045105
  0.55682804  0.31134579  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 5.68188494921, last10PointsDistance.max() = 5.68188494921
Found trip end at 2015-08-21 19:37:30
------------------------------2015-08-21 19:42:00------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 19:42:30------------------------------
last5MinsDistances = [ 0.11119493] with length 1
last10PointsDistances = [ 0.11119493  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 19:43:00------------------------------
last5MinsDistances = [ 3.71844959  3.82595952] with length 2
last10PointsDistances = [ 3.71844959  3.82595952  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 19:43:30------------------------------
last5MinsDistances = [ 0.41897393  0.31445257  4.07917199] with length 3
last10PointsDistances = [ 0.41897393  0.31445257  4.07917199  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 19:44:00------------------------------
last5MinsDistances = [ 0.70058374  0.58939933  4.39689637  0.32144388] with length 4
last10PointsDistances = [ 0.70058374  0.58939933  4.39689637  0.32144388  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 19:44:30------------------------------
last5MinsDistances = [ 0.09719213  0.19143614  3.67330792  0.50584814  0.77135392] with length 5
last10PointsDistances = [ 0.09719213  0.19143614  3.67330792  0.50584814  0.77135392  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 19:45:00------------------------------
last5MinsDistances = [ 5.07532353  5.03300144  7.92490177  5.05033695  4.85378543  5.03704751] with length 6
last10PointsDistances = [ 5.07532353  5.03300144  7.92490177  5.05033695  4.85378543  5.03704751
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 19:45:30------------------------------
last5MinsDistances = [ 1.90941499  1.86883603  5.11958917  1.91307112  1.76747033  1.87248817
  3.1659086 ] with length 7
last10PointsDistances = [ 1.90941499  1.86883603  5.11958917  1.91307112  1.76747033  1.87248817
  3.1659086   0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 19:46:00------------------------------
last5MinsDistances = [ 0.63853382  0.53066889  4.29363133  0.22309066  0.15368673  0.72127703
  5.00228971  1.90336308] with length 8
last10PointsDistances = [ 0.63853382  0.53066889  4.29363133  0.22309066  0.15368673  0.72127703
  5.00228971  1.90336308  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 5.00228971386, last10PointsDistance.max() = 5.00228971386
Found trip end at 2015-08-21 19:42:00
------------------------------2015-08-21 19:46:30------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 19:47:00------------------------------
last5MinsDistances = [ 4.77776788] with length 1
last10PointsDistances = [ 4.77776788  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 19:47:30------------------------------
last5MinsDistances = [ 4.62450109  1.17025098] with length 2
last10PointsDistances = [ 4.62450109  1.17025098  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 19:48:00------------------------------
last5MinsDistances = [ 7.00774111  3.25935386  4.39766744] with length 3
last10PointsDistances = [ 7.00774111  3.25935386  4.39766744  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 19:48:30------------------------------
last5MinsDistances = [ 0.77509376  4.0197412   3.85080834  6.38611009] with length 4
last10PointsDistances = [ 0.77509376  4.0197412   3.85080834  6.38611009  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 19:49:00------------------------------
last5MinsDistances = [ 0.64465504  5.29278997  5.03538206  7.63080409  1.286486  ] with length 5
last10PointsDistances = [ 0.64465504  5.29278997  5.03538206  7.63080409  1.286486    0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 19:49:31------------------------------
last5MinsDistances = [ 4.50816507  0.62226262  0.5889683   3.88152133  3.73547325  4.97639764] with length 6
last10PointsDistances = [ 4.50816507  0.62226262  0.5889683   3.88152133  3.73547325  4.97639764
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 19:49:57------------------------------
last5MinsDistances = [ 4.7372551   0.08315946  1.23128484  3.21829135  3.98205669  5.25795739
  0.66927199] with length 7
last10PointsDistances = [ 4.7372551   0.08315946  1.23128484  3.21829135  3.98205669  5.25795739
  0.66927199  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 19:50:02------------------------------
last5MinsDistances = [ 4.70490068  0.09443369  1.21257953  3.24599229  3.949237    5.22476055
  0.64547493  0.03459793] with length 8
last10PointsDistances = [ 4.70490068  0.09443369  1.21257953  3.24599229  3.949237    5.22476055
  0.64547493  0.03459793  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 5.22476055339, last10PointsDistance.max() = 5.22476055339
Found trip end at 2015-08-21 19:46:30
------------------------------2015-08-21 19:50:32------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 19:51:02------------------------------
last5MinsDistances = [ 0.79347776] with length 1
last10PointsDistances = [ 0.79347776  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 19:51:32------------------------------
last5MinsDistances = [ 1.23844104  1.22402239] with length 2
last10PointsDistances = [ 1.23844104  1.22402239  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 19:52:02------------------------------
last5MinsDistances = [ 4.63444586  4.82431888  3.6004058 ] with length 3
last10PointsDistances = [ 4.63444586  4.82431888  3.6004058   0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 19:52:32------------------------------
last5MinsDistances = [ 0.24459854  0.61792019  1.04085451  4.52300488] with length 4
last10PointsDistances = [ 0.24459854  0.61792019  1.04085451  4.52300488  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 19:53:02------------------------------
last5MinsDistances = [ 0.22253546  0.67721079  1.36817894  4.82934796  0.3276341 ] with length 5
last10PointsDistances = [ 0.22253546  0.67721079  1.36817894  4.82934796  0.3276341   0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 19:53:32------------------------------
last5MinsDistances = [ 4.12652663  4.22701742  3.00996658  0.75301986  3.98857411  4.30677476] with length 6
last10PointsDistances = [ 4.12652663  4.22701742  3.00996658  0.75301986  3.98857411  4.30677476
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 19:54:02------------------------------
last5MinsDistances = [ 0.197633    0.64974193  1.31430481  4.78160497  0.27409679  0.05416105
  4.25632713] with length 7
last10PointsDistances = [ 0.197633    0.64974193  1.31430481  4.78160497  0.27409679  0.05416105
  4.25632713  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 19:54:32------------------------------
last5MinsDistances = [ 0.52243044  0.2976204   1.07019483  4.6471811   0.322949    0.46306745
  4.07648994  0.42061656] with length 8
last10PointsDistances = [ 0.52243044  0.2976204   1.07019483  4.6471811   0.322949    0.46306745
  4.07648994  0.42061656  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4.64718110403, last10PointsDistance.max() = 4.64718110403
Found trip end at 2015-08-21 19:50:32
------------------------------2015-08-21 19:55:32------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 19:56:02------------------------------
last5MinsDistances = [ 0.26564253] with length 1
last10PointsDistances = [ 0.26564253  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 19:56:32------------------------------
last5MinsDistances = [ 4.49191791  4.4500784 ] with length 2
last10PointsDistances = [ 4.49191791  4.4500784   0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 19:57:02------------------------------
last5MinsDistances = [ 2.53250349  2.54854338  2.06711727] with length 3
last10PointsDistances = [ 2.53250349  2.54854338  2.06711727  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 19:57:32------------------------------
last5MinsDistances = [ 2.23529738  2.11055246  2.51832825  1.32634909] with length 4
last10PointsDistances = [ 2.23529738  2.11055246  2.51832825  1.32634909  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 19:58:02------------------------------
last5MinsDistances = [ 3.38179637  3.23636327  1.98418055  1.97898213  1.16276503] with length 5
last10PointsDistances = [ 3.38179637  3.23636327  1.98418055  1.97898213  1.16276503  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 19:58:32------------------------------
last5MinsDistances = [ 3.44100241  3.38421594  1.08234365  1.19062337  1.44591244  1.22043586] with length 6
last10PointsDistances = [ 3.44100241  3.38421594  1.08234365  1.19062337  1.44591244  1.22043586
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 19:59:02------------------------------
last5MinsDistances = [ 4.74842206  4.53524101  7.7911087   6.5681925   5.40813342  5.85663572
  6.79545487] with length 7
last10PointsDistances = [ 4.74842206  4.53524101  7.7911087   6.5681925   5.40813342  5.85663572
  6.79545487  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 19:59:32------------------------------
last5MinsDistances = [ 2.56685431  2.52262269  1.92796144  0.57773396  0.8397887   1.41226713
  0.88022781  6.22221087] with length 8
last10PointsDistances = [ 2.56685431  2.52262269  1.92796144  0.57773396  0.8397887   1.41226713
  0.88022781  6.22221087  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 6.22221086831, last10PointsDistance.max() = 6.22221086831
Found trip end at 2015-08-21 19:55:32
------------------------------2015-08-21 20:00:03------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 20:00:33------------------------------
last5MinsDistances = [ 1.81642521] with length 1
last10PointsDistances = [ 1.81642521  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 20:01:03------------------------------
last5MinsDistances = [ 0.57410635  2.37699812] with length 2
last10PointsDistances = [ 0.57410635  2.37699812  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 20:01:33------------------------------
last5MinsDistances = [ 0.78180633  2.5950501   0.31596393] with length 3
last10PointsDistances = [ 0.78180633  2.5950501   0.31596393  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 20:02:03------------------------------
last5MinsDistances = [ 5.19349847  6.47624283  4.75091851  4.82465517] with length 4
last10PointsDistances = [ 5.19349847  6.47624283  4.75091851  4.82465517  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 20:02:33------------------------------
last5MinsDistances = [ 0.20769359  1.98690683  0.39013902  0.64517257  4.9932988 ] with length 5
last10PointsDistances = [ 0.20769359  1.98690683  0.39013902  0.64517257  4.9932988   0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 20:03:03------------------------------
last5MinsDistances = [ 4.90572871  6.21022827  4.4591075   4.53065866  0.29491352  4.70484167] with length 6
last10PointsDistances = [ 4.90572871  6.21022827  4.4591075   4.53065866  0.29491352  4.70484167
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 20:03:33------------------------------
last5MinsDistances = [ 0.          1.81642521  0.57410635  0.78180633  5.19349847  0.20769359
  4.90572871] with length 7
last10PointsDistances = [ 0.          1.81642521  0.57410635  0.78180633  5.19349847  0.20769359
  4.90572871  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 20:04:03------------------------------
last5MinsDistances = [ 5.20433816  6.57298728  4.73330973  4.78068887  0.40680178  5.0003677
  0.44555727  5.20433816] with length 8
last10PointsDistances = [ 5.20433816  6.57298728  4.73330973  4.78068887  0.40680178  5.0003677
  0.44555727  5.20433816  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 6.57298728286, last10PointsDistance.max() = 6.57298728286
Found trip end at 2015-08-21 20:00:03
------------------------------2015-08-21 20:04:33------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 20:05:03------------------------------
last5MinsDistances = [ 1.58576616] with length 1
last10PointsDistances = [ 1.58576616  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 20:05:33------------------------------
last5MinsDistances = [ 4.83910474  5.09096347] with length 2
last10PointsDistances = [ 4.83910474  5.09096347  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 20:06:03------------------------------
last5MinsDistances = [ 1.88671544  0.40113189  5.45454391] with length 3
last10PointsDistances = [ 1.88671544  0.40113189  5.45454391  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 20:06:33------------------------------
last5MinsDistances = [ 0.22227814  1.5452141   4.62417845  1.87772939] with length 4
last10PointsDistances = [ 0.22227814  1.5452141   4.62417845  1.87772939  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 20:07:03------------------------------
last5MinsDistances = [ 0.47530137  1.96188189  4.53080583  2.29667216  0.41897393] with length 5
last10PointsDistances = [ 0.47530137  1.96188189  4.53080583  2.29667216  0.41897393  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 20:07:33------------------------------
last5MinsDistances = [ 0.35626219  1.88928838  4.64528345  2.21242993  0.34836565  0.13175534] with length 6
last10PointsDistances = [ 0.35626219  1.88928838  4.64528345  2.21242993  0.34836565  0.13175534
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 20:08:03------------------------------
last5MinsDistances = [ 0.86804004  2.35429771  4.40950881  2.69624152  0.81986929  0.40379606
  0.51180175] with length 7
last10PointsDistances = [ 0.86804004  2.35429771  4.40950881  2.69624152  0.81986929  0.40379606
  0.51180175  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 20:08:33------------------------------
last5MinsDistances = [ 0.96799832  2.40267271  4.26950492  2.75524936  0.89170644  0.49315058
  0.61490197  0.14527042] with length 8
last10PointsDistances = [ 0.96799832  2.40267271  4.26950492  2.75524936  0.89170644  0.49315058
  0.61490197  0.14527042  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4.2695049154, last10PointsDistance.max() = 4.2695049154
Found trip end at 2015-08-21 20:04:33
------------------------------2015-08-21 20:09:03------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 20:09:33------------------------------
last5MinsDistances = [ 4.69022642] with length 1
last10PointsDistances = [ 4.69022642  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 20:10:03------------------------------
last5MinsDistances = [ 3.8085396  0.9292926] with length 2
last10PointsDistances = [ 3.8085396  0.9292926  0.       ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 20:10:33------------------------------
last5MinsDistances = [ 0.57989846  4.56862031  3.65532279] with length 3
last10PointsDistances = [ 0.57989846  4.56862031  3.65532279  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 20:11:03------------------------------
last5MinsDistances = [ 3.97257239  7.64660329  6.98530441  4.52726557] with length 4
last10PointsDistances = [ 3.97257239  7.64660329  6.98530441  4.52726557  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 20:11:33------------------------------
last5MinsDistances = [ 1.38004928  4.39373628  3.65612634  1.87860683  3.36504793] with length 5
last10PointsDistances = [ 1.38004928  4.39373628  3.65612634  1.87860683  3.36504793  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 20:12:03------------------------------
last5MinsDistances = [ 1.35064364  3.56891577  2.77405147  1.58829897  4.30084875  0.93962175] with length 6
last10PointsDistances = [ 1.35064364  3.56891577  2.77405147  1.58829897  4.30084875  0.93962175
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 20:12:33------------------------------
last5MinsDistances = [ 5.06603623  0.42054571  1.26473508  4.91972739  8.06685546  4.80757419
  3.97252402] with length 7
last10PointsDistances = [ 5.06603623  0.42054571  1.26473508  4.91972739  8.06685546  4.80757419
  3.97252402  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 20:13:03------------------------------
last5MinsDistances = [ 4.76270276  0.39145981  1.1500842   4.68747489  7.53965201  4.35144535
  3.57514093  0.66320861] with length 8
last10PointsDistances = [ 4.76270276  0.39145981  1.1500842   4.68747489  7.53965201  4.35144535
  3.57514093  0.66320861  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 7.53965201231, last10PointsDistance.max() = 7.53965201231
Found trip end at 2015-08-21 20:09:03
------------------------------2015-08-21 20:13:33------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 20:14:03------------------------------
last5MinsDistances = [ 0.64054748] with length 1
last10PointsDistances = [ 0.64054748  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 20:14:33------------------------------
last5MinsDistances = [ 2.39857853  1.8012592 ] with length 2
last10PointsDistances = [ 2.39857853  1.8012592   0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 20:15:03------------------------------
last5MinsDistances = [ 1.84400741  2.42600224  3.90028759] with length 3
last10PointsDistances = [ 1.84400741  2.42600224  3.90028759  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 20:15:33------------------------------
last5MinsDistances = [ 1.97962698  2.5421305   3.95667175  0.19436014] with length 4
last10PointsDistances = [ 1.97962698  2.5421305   3.95667175  0.19436014  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 20:16:03------------------------------
last5MinsDistances = [ 2.69260899  2.0527051   0.94897563  4.42169083  4.51164557] with length 5
last10PointsDistances = [ 2.69260899  2.0527051   0.94897563  4.42169083  4.51164557  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 20:16:33------------------------------
last5MinsDistances = [ 0.31839025  0.44643061  2.24728973  2.15698208  2.29580537  2.44873134] with length 6
last10PointsDistances = [ 0.31839025  0.44643061  2.24728973  2.15698208  2.29580537  2.44873134
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 20:17:03------------------------------
last5MinsDistances = [ 0.51126648  0.2786271   2.05528761  2.35445904  2.48710016  2.22954631
  0.22013537] with length 7
last10PointsDistances = [ 0.51126648  0.2786271   2.05528761  2.35445904  2.48710016  2.22954631
  0.22013537  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 20:17:33------------------------------
last5MinsDistances = [ 0.24252806  0.70502591  2.50468623  1.95306649  2.10293053  2.71577354
  0.26818068  0.48623148] with length 8
last10PointsDistances = [ 0.24252806  0.70502591  2.50468623  1.95306649  2.10293053  2.71577354
  0.26818068  0.48623148  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 2.71577353518, last10PointsDistance.max() = 2.71577353518
Found trip end at 2015-08-21 20:13:33
------------------------------2015-08-21 20:18:03------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 20:18:34------------------------------
last5MinsDistances = [ 5.13933202] with length 1
last10PointsDistances = [ 5.13933202  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 20:19:04------------------------------
last5MinsDistances = [ 0.52816144  4.6972114 ] with length 2
last10PointsDistances = [ 0.52816144  4.6972114   0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 20:19:34------------------------------
last5MinsDistances = [ 0.18114872  5.12608331  0.62976278] with length 3
last10PointsDistances = [ 0.18114872  5.12608331  0.62976278  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 20:20:04------------------------------
last5MinsDistances = [ 5.32050598  0.43509766  4.85667625  5.32085028] with length 4
last10PointsDistances = [ 5.32050598  0.43509766  4.85667625  5.32085028  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 20:20:34------------------------------
last5MinsDistances = [ 0.26684409  4.87326695  0.31556267  0.32005963  5.0536621 ] with length 5
last10PointsDistances = [ 0.26684409  4.87326695  0.31556267  0.32005963  5.0536621   0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 20:21:04------------------------------
last5MinsDistances = [ 0.30769495  4.87609886  0.46910307  0.25055228  5.07030829  0.17501279] with length 6
last10PointsDistances = [ 0.30769495  4.87609886  0.46910307  0.25055228  5.07030829  0.17501279
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 20:21:34------------------------------
last5MinsDistances = [ 0.48962367  4.78603198  0.09969223  0.61525056  4.94137544  0.32246529
  0.49212077] with length 7
last10PointsDistances = [ 0.48962367  4.78603198  0.09969223  0.61525056  4.94137544  0.32246529
  0.49212077  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 20:22:04------------------------------
last5MinsDistances = [ 5.30174265  0.75520303  4.82165038  5.31398885  0.34960574  5.03552874
  5.06416765  4.90239165] with length 8
last10PointsDistances = [ 5.30174265  0.75520303  4.82165038  5.31398885  0.34960574  5.03552874
  5.06416765  4.90239165  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 5.31398884704, last10PointsDistance.max() = 5.31398884704
Found trip end at 2015-08-21 20:18:03
------------------------------2015-08-21 20:22:34------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 20:23:04------------------------------
last5MinsDistances = [ 3.71994512] with length 1
last10PointsDistances = [ 3.71994512  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 20:24:04------------------------------
last5MinsDistances = [ 3.73506716  1.17716678] with length 2
last10PointsDistances = [ 3.73506716  1.17716678  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 20:24:34------------------------------
last5MinsDistances = [ 1.99000564  4.86497629  5.26936832] with length 3
last10PointsDistances = [ 1.99000564  4.86497629  5.26936832  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 20:25:04------------------------------
last5MinsDistances = [ 3.91010115  0.51725128  0.74915151  5.21231781] with length 4
last10PointsDistances = [ 3.91010115  0.51725128  0.74915151  5.21231781  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 20:25:34------------------------------
last5MinsDistances = [ 3.73632865  0.42254072  0.75999356  5.03208165  0.18062935] with length 5
last10PointsDistances = [ 3.73632865  0.42254072  0.75999356  5.03208165  0.18062935  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 20:26:04------------------------------
last5MinsDistances = [ 1.85385151  4.85414074  5.21819582  0.18564055  5.1871621   5.00661399] with length 6
last10PointsDistances = [ 1.85385151  4.85414074  5.21819582  0.18564055  5.1871621   5.00661399
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 20:26:34------------------------------
last5MinsDistances = [ 3.72472827  0.13343391  1.30962089  4.81870432  0.64491908  0.55597463
  4.81269969] with length 7
last10PointsDistances = [ 3.72472827  0.13343391  1.30962089  4.81870432  0.64491908  0.55597463
  4.81269969  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 20:27:04------------------------------
last5MinsDistances = [ 3.69287504  0.19230614  1.36143105  4.76697281  0.70807071  0.61259221
  4.76258682  0.06587767] with length 8
last10PointsDistances = [ 3.69287504  0.19230614  1.36143105  4.76697281  0.70807071  0.61259221
  4.76258682  0.06587767  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4.76697281462, last10PointsDistance.max() = 4.76697281462
Found trip end at 2015-08-21 20:22:34
------------------------------2015-08-21 20:27:34------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 20:28:04------------------------------
last5MinsDistances = [ 5.28363558] with length 1
last10PointsDistances = [ 5.28363558  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 20:28:34------------------------------
last5MinsDistances = [ 0.07178855  5.24082884] with length 2
last10PointsDistances = [ 0.07178855  5.24082884  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 20:29:04------------------------------
last5MinsDistances = [ 0.40435784  4.93907116  0.33925909] with length 3
last10PointsDistances = [ 0.40435784  4.93907116  0.33925909  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 20:29:34------------------------------
last5MinsDistances = [ 0.322949    5.22540192  0.25953505  0.30222145] with length 4
last10PointsDistances = [ 0.322949    5.22540192  0.25953505  0.30222145  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 20:30:04------------------------------
last5MinsDistances = [ 0.30622654  5.07321877  0.23528289  0.13437139  0.17682444] with length 5
last10PointsDistances = [ 0.30622654  5.07321877  0.23528289  0.13437139  0.17682444  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 20:30:34------------------------------
last5MinsDistances = [ 0.55345379  5.07126495  0.48333351  0.31595405  0.25029499  0.28299598] with length 6
last10PointsDistances = [ 0.55345379  5.07126495  0.48333351  0.31595405  0.25029499  0.28299598
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 20:31:05------------------------------
last5MinsDistances = [ 0.20349874  5.0848521   0.18523177  0.28913482  0.38172901  0.26118381
  0.54416252] with length 7
last10PointsDistances = [ 0.20349874  5.0848521   0.18523177  0.28913482  0.38172901  0.26118381
  0.54416252  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 20:31:35------------------------------
last5MinsDistances = [ 0.37374092  5.06086558  0.39823128  0.51180175  0.63088751  0.51179032
  0.79369577  0.25292407] with length 8
last10PointsDistances = [ 0.37374092  5.06086558  0.39823128  0.51180175  0.63088751  0.51179032
  0.79369577  0.25292407  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 5.06086557815, last10PointsDistance.max() = 5.06086557815
Found trip end at 2015-08-21 20:27:34
------------------------------2015-08-21 20:32:05------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 20:32:35------------------------------
last5MinsDistances = [ 1.4707858] with length 1
last10PointsDistances = [ 1.4707858  0.       ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 20:33:35------------------------------
last5MinsDistances = [ 3.25105118  4.30580462] with length 2
last10PointsDistances = [ 3.25105118  4.30580462  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 20:34:05------------------------------
last5MinsDistances = [ 1.57380432  0.35798873  4.574168  ] with length 3
last10PointsDistances = [ 1.57380432  0.35798873  4.574168    0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 20:34:35------------------------------
last5MinsDistances = [ 1.49407429  0.55507317  4.59615775  0.24397084] with length 4
last10PointsDistances = [ 1.49407429  0.55507317  4.59615775  0.24397084  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 20:35:05------------------------------
last5MinsDistances = [ 2.70987131  3.92676141  0.76640083  4.15541579  4.14217509] with length 5
last10PointsDistances = [ 2.70987131  3.92676141  0.76640083  4.15541579  4.14217509  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 20:35:35------------------------------
last5MinsDistances = [ 1.56358155  0.30115642  4.53838675  0.0583376   0.29392605  4.12684276] with length 6
last10PointsDistances = [ 1.56358155  0.30115642  4.53838675  0.0583376   0.29392605  4.12684276
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 20:36:05------------------------------
last5MinsDistances = [ 3.68160394  3.34132284  6.89140395  2.98807658  2.79582791  6.26592765
  3.04637695] with length 7
last10PointsDistances = [ 3.68160394  3.34132284  6.89140395  2.98807658  2.79582791  6.26592765
  3.04637695  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 20:36:35------------------------------
last5MinsDistances = [ 1.42548457  0.77841462  4.60721547  0.49626834  0.25292407  4.11819999
  0.54376824  2.62399129] with length 8
last10PointsDistances = [ 1.42548457  0.77841462  4.60721547  0.49626834  0.25292407  4.11819999
  0.54376824  2.62399129  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4.60721547408, last10PointsDistance.max() = 4.60721547408
Found trip end at 2015-08-21 20:32:05
------------------------------2015-08-21 20:37:05------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 20:37:35------------------------------
last5MinsDistances = [ 4.55310862] with length 1
last10PointsDistances = [ 4.55310862  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 20:38:05------------------------------
last5MinsDistances = [ 4.30802291  0.40336326] with length 2
last10PointsDistances = [ 4.30802291  0.40336326  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 20:38:35------------------------------
last5MinsDistances = [ 0.1445534   4.6143003   4.35976092] with length 3
last10PointsDistances = [ 0.1445534   4.6143003   4.35976092  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 20:39:05------------------------------
last5MinsDistances = [ 0.          4.55310862  4.30802291  0.1445534 ] with length 4
last10PointsDistances = [ 0.          4.55310862  4.30802291  0.1445534   0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 20:39:35------------------------------
last5MinsDistances = [ 3.80169617  0.76364145  0.53112174  3.85897699  3.80169617] with length 5
last10PointsDistances = [ 3.80169617  0.76364145  0.53112174  3.85897699  3.80169617  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 20:40:05------------------------------
last5MinsDistances = [ 3.93964219  0.61424627  0.45550805  4.00017269  3.93964219  0.16941257] with length 6
last10PointsDistances = [ 3.93964219  0.61424627  0.45550805  4.00017269  3.93964219  0.16941257
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 20:40:35------------------------------
last5MinsDistances = [ 2.60197628  6.09500075  5.74054841  2.45742376  2.60197628  5.35569773
  5.52286781] with length 7
last10PointsDistances = [ 2.60197628  6.09500075  5.74054841  2.45742376  2.60197628  5.35569773
  5.52286781  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 20:41:05------------------------------
last5MinsDistances = [ 2.8808157   6.35427045  5.99569685  2.7363081   2.8808157   5.61917636
  5.786893    0.28913483] with length 8
last10PointsDistances = [ 2.8808157   6.35427045  5.99569685  2.7363081   2.8808157   5.61917636
  5.786893    0.28913483  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 6.35427044578, last10PointsDistance.max() = 6.35427044578
Found trip end at 2015-08-21 20:37:05
------------------------------2015-08-21 20:41:35------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 20:42:05------------------------------
last5MinsDistances = [ 2.27910351] with length 1
last10PointsDistances = [ 2.27910351  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 20:42:35------------------------------
last5MinsDistances = [ 6.61267445  5.4543684 ] with length 2
last10PointsDistances = [ 6.61267445  5.4543684   0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 20:43:05------------------------------
last5MinsDistances = [ 2.17349621  0.12251632  5.54926097] with length 3
last10PointsDistances = [ 2.17349621  0.12251632  5.54926097  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 20:43:35------------------------------
last5MinsDistances = [ 2.09939142  4.31983544  8.47087969  4.20542159] with length 4
last10PointsDistances = [ 2.09939142  4.31983544  8.47087969  4.20542159  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 20:44:05------------------------------
last5MinsDistances = [ 1.91188543  4.13211571  8.30731713  4.0178755   0.18835355] with length 5
last10PointsDistances = [ 1.91188543  4.13211571  8.30731713  4.0178755   0.18835355  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 20:44:35------------------------------
last5MinsDistances = [ 1.7609347   3.91672789  8.27286583  3.7998836   0.47237883  0.33421061] with length 6
last10PointsDistances = [ 1.7609347   3.91672789  8.27286583  3.7998836   0.47237883  0.33421061
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 20:45:06------------------------------
last5MinsDistances = [ 2.09939142  4.31983544  8.47087969  4.20542159  0.          0.18835355
  0.47237883] with length 7
last10PointsDistances = [ 2.09939142  4.31983544  8.47087969  4.20542159  0.          0.18835355
  0.47237883  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 20:45:36------------------------------
last5MinsDistances = [ 1.85006839  0.48000035  5.44946816  0.41879755  3.92499892  3.73666463
  3.54093706  3.92499892] with length 8
last10PointsDistances = [ 1.85006839  0.48000035  5.44946816  0.41879755  3.92499892  3.73666463
  3.54093706  3.92499892  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 5.44946816308, last10PointsDistance.max() = 5.44946816308
Found trip end at 2015-08-21 20:41:35
------------------------------2015-08-21 20:46:06------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 20:46:36------------------------------
last5MinsDistances = [ 3.13227218] with length 1
last10PointsDistances = [ 3.13227218  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 20:47:06------------------------------
last5MinsDistances = [ 3.88806919  0.78662784] with length 2
last10PointsDistances = [ 3.88806919  0.78662784  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 20:47:36------------------------------
last5MinsDistances = [ 2.5349869   0.72085543  1.37667117] with length 3
last10PointsDistances = [ 2.5349869   0.72085543  1.37667117  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 20:48:06------------------------------
last5MinsDistances = [ 0.57989846  3.66472032  4.40450439  3.03514242] with length 4
last10PointsDistances = [ 0.57989846  3.66472032  4.40450439  3.03514242  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 20:48:36------------------------------
last5MinsDistances = [ 4.49950589  7.116723    7.89712935  6.73727887  4.32010159] with length 5
last10PointsDistances = [ 4.49950589  7.116723    7.89712935  6.73727887  4.32010159  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 20:49:06------------------------------
last5MinsDistances = [ 0.44486744  3.55391498  4.2998879   2.9350158   0.1435771   4.3152265 ] with length 6
last10PointsDistances = [ 0.44486744  3.55391498  4.2998879   2.9350158   0.1435771   4.3152265   0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 20:49:36------------------------------
last5MinsDistances = [ 0.03704636  3.15544544  3.91297276  2.56206094  0.57264102  4.46286716
  0.43446936] with length 7
last10PointsDistances = [ 0.03704636  3.15544544  3.91297276  2.56206094  0.57264102  4.46286716
  0.43446936  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 20:50:09------------------------------
last5MinsDistances = [ 0.45298775  3.44700508  4.17942903  2.80685292  0.24459854  4.53771735
  0.22529785  0.46114369] with length 8
last10PointsDistances = [ 0.45298775  3.44700508  4.17942903  2.80685292  0.24459854  4.53771735
  0.22529785  0.46114369  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4.53771734735, last10PointsDistance.max() = 4.53771734735
Found trip end at 2015-08-21 20:46:06
------------------------------2015-08-21 20:50:39------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 20:51:09------------------------------
last5MinsDistances = [ 4.14477795] with length 1
last10PointsDistances = [ 4.14477795  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 20:51:39------------------------------
last5MinsDistances = [ 0.34746027  4.29512026] with length 2
last10PointsDistances = [ 0.34746027  4.29512026  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 20:52:09------------------------------
last5MinsDistances = [ 6.12999984  2.10348294  6.2323245 ] with length 3
last10PointsDistances = [ 6.12999984  2.10348294  6.2323245   0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 20:52:39------------------------------
last5MinsDistances = [ 6.1716397   2.09969053  6.28360703  0.18687044] with length 4
last10PointsDistances = [ 6.1716397   2.09969053  6.28360703  0.18687044  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 20:53:09------------------------------
last5MinsDistances = [ 2.54874188  3.10970794  2.42251656  4.50968113  4.61569656] with length 5
last10PointsDistances = [ 2.54874188  3.10970794  2.42251656  4.50968113  4.61569656  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 20:53:39------------------------------
last5MinsDistances = [ 0.89471648  5.00341522  0.92820278  7.01267124  7.04990696  3.35058382] with length 6
last10PointsDistances = [ 0.89471648  5.00341522  0.92820278  7.01267124  7.04990696  3.35058382
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 20:54:09------------------------------
last5MinsDistances = [ 3.17177981  3.09485826  3.04525754  4.21908228  4.34360932  0.6239536
  3.97303911] with length 7
last10PointsDistances = [ 3.17177981  3.09485826  3.04525754  4.21908228  4.34360932  0.6239536
  3.97303911  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 20:54:39------------------------------
last5MinsDistances = [ 0.73909893  4.79365791  0.85661105  6.81622353  6.84983961  3.26116131
  0.24085431  3.88509889] with length 8
last10PointsDistances = [ 0.73909893  4.79365791  0.85661105  6.81622353  6.84983961  3.26116131
  0.24085431  3.88509889  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 6.84983961063, last10PointsDistance.max() = 6.84983961063
Found trip end at 2015-08-21 20:50:39
------------------------------2015-08-21 20:55:09------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 20:55:39------------------------------
last5MinsDistances = [ 3.26672099] with length 1
last10PointsDistances = [ 3.26672099  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 20:56:09------------------------------
last5MinsDistances = [ 3.50240814  0.26698334] with length 2
last10PointsDistances = [ 3.50240814  0.26698334  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 20:56:39------------------------------
last5MinsDistances = [ 7.146353    4.92046317  4.69278543] with length 3
last10PointsDistances = [ 7.146353    4.92046317  4.69278543  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 20:57:09------------------------------
last5MinsDistances = [ 4.04315293  0.77649566  0.55597463  4.56862701] with length 4
last10PointsDistances = [ 4.04315293  0.77649566  0.55597463  4.56862701  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 20:57:39------------------------------
last5MinsDistances = [ 3.54805021  0.39846381  0.16785651  4.53186662  0.58076122] with length 5
last10PointsDistances = [ 3.54805021  0.39846381  0.16785651  4.53186662  0.58076122  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 20:58:09------------------------------
last5MinsDistances = [ 6.47934658  4.33910989  4.12262247  0.66922092  4.04694939  3.9583819 ] with length 6
last10PointsDistances = [ 6.47934658  4.33910989  4.12262247  0.66922092  4.04694939  3.9583819   0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 20:58:39------------------------------
last5MinsDistances = [ 6.9932217   4.92339436  4.70749546  0.38195085  4.62802911  4.54318203
  0.58491253] with length 7
last10PointsDistances = [ 6.9932217   4.92339436  4.70749546  0.38195085  4.62802911  4.54318203
  0.58491253  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 20:59:10------------------------------
last5MinsDistances = [ 7.03767156  4.75862391  4.528083    0.19078269  4.39365408  4.36822607
  0.59418023  0.50424511] with length 8
last10PointsDistances = [ 7.03767156  4.75862391  4.528083    0.19078269  4.39365408  4.36822607
  0.59418023  0.50424511  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 7.03767156379, last10PointsDistance.max() = 7.03767156379
Found trip end at 2015-08-21 20:55:09
------------------------------2015-08-21 20:59:40------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 21:00:10------------------------------
last5MinsDistances = [ 0.49212077] with length 1
last10PointsDistances = [ 0.49212077  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 21:00:40------------------------------
last5MinsDistances = [ 2.3004714   2.52474805] with length 2
last10PointsDistances = [ 2.3004714   2.52474805  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 21:01:10------------------------------
last5MinsDistances = [ 0.23716854  0.44753418  2.53732813] with length 3
last10PointsDistances = [ 0.23716854  0.44753418  2.53732813  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 21:01:40------------------------------
last5MinsDistances = [ 3.65670969  4.14070235  3.9430808   3.72025509] with length 4
last10PointsDistances = [ 3.65670969  4.14070235  3.9430808   3.72025509  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 21:02:10------------------------------
last5MinsDistances = [ 3.458342    3.94058688  3.82467526  3.51761688  0.21145499] with length 5
last10PointsDistances = [ 3.458342    3.94058688  3.82467526  3.51761688  0.21145499  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 21:02:40------------------------------
last5MinsDistances = [ 0.15941025  0.52304162  2.44700136  0.11964759  3.6233938   3.42199913] with length 6
last10PointsDistances = [ 0.15941025  0.52304162  2.44700136  0.11964759  3.6233938   3.42199913
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 21:03:10------------------------------
last5MinsDistances = [ 0.27007543  0.40320676  2.56410991  0.05559746  3.77428525  3.57142374
  0.17254256] with length 7
last10PointsDistances = [ 0.27007543  0.40320676  2.56410991  0.05559746  3.77428525  3.57142374
  0.17254256  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 21:03:40------------------------------
last5MinsDistances = [ 0.80235634  1.29421053  2.10340532  0.93505812  2.88261226  2.68987139
  0.81861669  0.98997402] with length 8
last10PointsDistances = [ 0.80235634  1.29421053  2.10340532  0.93505812  2.88261226  2.68987139
  0.81861669  0.98997402  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 2.88261226392, last10PointsDistance.max() = 2.88261226392
Found trip end at 2015-08-21 20:59:40
------------------------------2015-08-21 21:04:10------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 21:04:40------------------------------
last5MinsDistances = [ 4.70012141] with length 1
last10PointsDistances = [ 4.70012141  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 21:05:10------------------------------
last5MinsDistances = [ 4.80297873  1.61361685] with length 2
last10PointsDistances = [ 4.80297873  1.61361685  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 21:05:40------------------------------
last5MinsDistances = [ 7.10206645  3.48725806  2.37288583] with length 3
last10PointsDistances = [ 7.10206645  3.48725806  2.37288583  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 21:06:10------------------------------
last5MinsDistances = [ 4.78079131  0.17049484  1.47441773  3.31690304] with length 4
last10PointsDistances = [ 4.78079131  0.17049484  1.47441773  3.31690304  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 21:06:40------------------------------
last5MinsDistances = [ 4.62365127  0.14055548  1.72389843  3.62746918  0.31057661] with length 5
last10PointsDistances = [ 4.62365127  0.14055548  1.72389843  3.62746918  0.31057661  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 21:07:10------------------------------
last5MinsDistances = [ 4.63808722  0.34515682  1.94388854  3.81840861  0.51180175  0.22013537] with length 6
last10PointsDistances = [ 4.63808722  0.34515682  1.94388854  3.81840861  0.51180175  0.22013537
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 21:07:40------------------------------
last5MinsDistances = [ 4.66915189  0.39648911  1.21717146  3.17723209  0.27291048  0.51148452
  0.73117578] with length 7
last10PointsDistances = [ 4.66915189  0.39648911  1.21717146  3.17723209  0.27291048  0.51148452
  0.73117578  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 21:08:10------------------------------
last5MinsDistances = [ 4.60621653  0.42254072  2.0126794   3.89822524  0.59039165  0.29246193
  0.07981673  0.80364246] with length 8
last10PointsDistances = [ 4.60621653  0.42254072  2.0126794   3.89822524  0.59039165  0.29246193
  0.07981673  0.80364246  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4.60621652861, last10PointsDistance.max() = 4.60621652861
Found trip end at 2015-08-21 21:04:10
------------------------------2015-08-21 21:08:40------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 21:09:10------------------------------
last5MinsDistances = [ 0.23862234] with length 1
last10PointsDistances = [ 0.23862234  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 21:09:40------------------------------
last5MinsDistances = [ 0.21631068  0.45485079] with length 2
last10PointsDistances = [ 0.21631068  0.45485079  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 21:10:10------------------------------
last5MinsDistances = [ 0.16056948  0.1556729   0.3567395 ] with length 3
last10PointsDistances = [ 0.16056948  0.1556729   0.3567395   0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 21:10:40------------------------------
last5MinsDistances = [ 2.44839575  2.65371809  2.27276344  2.50196044] with length 4
last10PointsDistances = [ 2.44839575  2.65371809  2.27276344  2.50196044  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 21:11:10------------------------------
last5MinsDistances = [ 2.33804764  2.57540057  2.12428517  2.45143363  1.0748098 ] with length 5
last10PointsDistances = [ 2.33804764  2.57540057  2.12428517  2.45143363  1.0748098   0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 21:11:40------------------------------
last5MinsDistances = [ 0.1435771   0.11496692  0.35337069  0.15363403  2.58905569  2.47764963] with length 6
last10PointsDistances = [ 0.1435771   0.11496692  0.35337069  0.15363403  2.58905569  2.47764963
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 21:12:10------------------------------
last5MinsDistances = [ 2.96072809  3.18892454  2.75823847  3.04906771  0.84603944  0.81456871
  3.10417863] with length 7
last10PointsDistances = [ 2.96072809  3.18892454  2.75823847  3.04906771  0.84603944  0.81456871
  3.10417863  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 21:12:40------------------------------
last5MinsDistances = [ 0.33944509  0.56623468  0.17254256  0.43481656  2.11320912  2.01666234
  0.48283751  2.62333403] with length 8
last10PointsDistances = [ 0.33944509  0.56623468  0.17254256  0.43481656  2.11320912  2.01666234
  0.48283751  2.62333403  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 2.62333403458, last10PointsDistance.max() = 2.62333403458
Found trip end at 2015-08-21 21:08:40
------------------------------2015-08-21 21:13:11------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 21:13:41------------------------------
last5MinsDistances = [ 0.47539962] with length 1
last10PointsDistances = [ 0.47539962  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 21:14:11------------------------------
last5MinsDistances = [ 0.56069464  0.11496692] with length 2
last10PointsDistances = [ 0.56069464  0.11496692  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 21:14:41------------------------------
last5MinsDistances = [ 1.96755109  2.43030293  2.49237212] with length 3
last10PointsDistances = [ 1.96755109  2.43030293  2.49237212  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 21:15:11------------------------------
last5MinsDistances = [ 0.34084433  0.71301714  0.75865024  1.74041995] with length 4
last10PointsDistances = [ 0.34084433  0.71301714  0.75865024  1.74041995  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 21:15:41------------------------------
last5MinsDistances = [ 3.0797113   3.55212528  3.62319224  1.16205297  2.88362017] with length 5
last10PointsDistances = [ 3.0797113   3.55212528  3.62319224  1.16205297  2.88362017  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 21:16:11------------------------------
last5MinsDistances = [ 0.53490423  0.15960657  0.24264428  2.50216207  0.81986929  3.60770409] with length 6
last10PointsDistances = [ 0.53490423  0.15960657  0.24264428  2.50216207  0.81986929  3.60770409
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 21:16:41------------------------------
last5MinsDistances = [ 5.81397676  5.49817886  5.38344822  6.974554    5.73090746  8.03669116
  5.59569045] with length 7
last10PointsDistances = [ 5.81397676  5.49817886  5.38344822  6.974554    5.73090746  8.03669116
  5.59569045  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 21:17:11------------------------------
last5MinsDistances = [ 0.40320676  0.16002982  0.17878712  2.31442809  0.57989846  3.44753345
  0.31342954  5.46062683] with length 8
last10PointsDistances = [ 0.40320676  0.16002982  0.17878712  2.31442809  0.57989846  3.44753345
  0.31342954  5.46062683  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 5.46062682602, last10PointsDistance.max() = 5.46062682602
Found trip end at 2015-08-21 21:13:11
------------------------------2015-08-21 21:17:41------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 21:18:11------------------------------
last5MinsDistances = [ 1.04047088] with length 1
last10PointsDistances = [ 1.04047088  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 21:18:41------------------------------
last5MinsDistances = [ 0.2178186   0.83978897] with length 2
last10PointsDistances = [ 0.2178186   0.83978897  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 21:19:11------------------------------
last5MinsDistances = [ 0.11538622  1.07017379  0.23082821] with length 3
last10PointsDistances = [ 0.11538622  1.07017379  0.23082821  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 21:19:41------------------------------
last5MinsDistances = [ 0.23603705  0.88306406  0.09110162  0.20189803] with length 4
last10PointsDistances = [ 0.23603705  0.88306406  0.09110162  0.20189803  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 21:20:11------------------------------
last5MinsDistances = [ 0.07815334  1.00172875  0.2166802   0.19078272  0.26304081] with length 5
last10PointsDistances = [ 0.07815334  1.00172875  0.2166802   0.19078272  0.26304081  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 21:20:41------------------------------
last5MinsDistances = [ 4.50487425  4.74675954  4.60950542  4.61416136  4.68866379  4.44413494] with length 6
last10PointsDistances = [ 4.50487425  4.74675954  4.60950542  4.61416136  4.68866379  4.44413494
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 21:21:11------------------------------
last5MinsDistances = [ 3.90638585  4.05184857  3.98946037  4.01915829  4.07290603  3.84042941
  0.76675499] with length 7
last10PointsDistances = [ 3.90638585  4.05184857  3.98946037  4.01915829  4.07290603  3.84042941
  0.76675499  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 21:21:41------------------------------
last5MinsDistances = [ 3.01839205  2.15768144  2.80270973  2.98807659  2.791028    3.01470503
  6.71530148  5.9741773 ] with length 8
last10PointsDistances = [ 3.01839205  2.15768144  2.80270973  2.98807659  2.791028    3.01470503
  6.71530148  5.9741773   0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 6.71530147865, last10PointsDistance.max() = 6.71530147865
Found trip end at 2015-08-21 21:17:41
------------------------------2015-08-21 21:22:11------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 21:22:41------------------------------
last5MinsDistances = [ 4.57745015] with length 1
last10PointsDistances = [ 4.57745015  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 21:23:11------------------------------
last5MinsDistances = [ 0.60051759  4.3873237 ] with length 2
last10PointsDistances = [ 0.60051759  4.3873237   0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 21:23:41------------------------------
last5MinsDistances = [ 2.34501377  6.77683432  2.81392224] with length 3
last10PointsDistances = [ 2.34501377  6.77683432  2.81392224  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 21:24:11------------------------------
last5MinsDistances = [ 1.0233366   4.28768922  0.42290999  3.17655855] with length 4
last10PointsDistances = [ 1.0233366   4.28768922  0.42290999  3.17655855  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 21:24:42------------------------------
last5MinsDistances = [ 0.82550011  4.49738725  0.26442985  2.90450531  0.27541767] with length 5
last10PointsDistances = [ 0.82550011  4.49738725  0.26442985  2.90450531  0.27541767  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 21:25:12------------------------------
last5MinsDistances = [ 1.43304898  3.63381274  1.72957486  3.19797604  2.01331343  1.98765538] with length 6
last10PointsDistances = [ 1.43304898  3.63381274  1.72957486  3.19797604  2.01331343  1.98765538
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 21:25:42------------------------------
last5MinsDistances = [ 4.74339921  0.37847542  4.51010706  6.98624995  4.37682728  4.600524
  3.88359055] with length 7
last10PointsDistances = [ 4.74339921  0.37847542  4.51010706  6.98624995  4.37682728  4.600524
  3.88359055  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 21:26:12------------------------------
last5MinsDistances = [ 0.24606038  4.51986479  0.35757425  2.51005855  0.78016732  0.5804252
  1.55890007  4.66818277] with length 8
last10PointsDistances = [ 0.24606038  4.51986479  0.35757425  2.51005855  0.78016732  0.5804252
  1.55890007  4.66818277  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4.66818277065, last10PointsDistance.max() = 4.66818277065
Found trip end at 2015-08-21 21:22:11
------------------------------2015-08-21 21:26:42------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 21:27:42------------------------------
last5MinsDistances = [ 0.15941025] with length 1
last10PointsDistances = [ 0.15941025  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 21:28:12------------------------------
last5MinsDistances = [ 0.22396359  0.24939179] with length 2
last10PointsDistances = [ 0.22396359  0.24939179  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 21:28:42------------------------------
last5MinsDistances = [ 0.          0.15941025  0.22396359] with length 3
last10PointsDistances = [ 0.          0.15941025  0.22396359  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 21:29:12------------------------------
last5MinsDistances = [ 0.27007543  0.17254256  0.18220325  0.27007543] with length 4
last10PointsDistances = [ 0.27007543  0.17254256  0.18220325  0.27007543  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 21:29:42------------------------------
last5MinsDistances = [ 0.70408429  0.6950461   0.4801743   0.70408429  0.53915559] with length 5
last10PointsDistances = [ 0.70408429  0.6950461   0.4801743   0.70408429  0.53915559  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 21:30:12------------------------------
last5MinsDistances = [ 0.46701869  0.48283751  0.24606038  0.46701869  0.35337069  0.24397084] with length 6
last10PointsDistances = [ 0.46701869  0.48283751  0.24606038  0.46701869  0.35337069  0.24397084
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 21:30:42------------------------------
last5MinsDistances = [ 0.44027075  0.41293609  0.22249571  0.44027075  0.2572261   0.28299598
  0.13143804] with length 7
last10PointsDistances = [ 0.44027075  0.41293609  0.22249571  0.44027075  0.2572261   0.28299598
  0.13143804  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 21:31:12------------------------------
last5MinsDistances = [ 1.15418451  1.29633212  1.30796587  1.15418451  1.42182304  1.68453827
  1.46009093  1.51413251] with length 8
last10PointsDistances = [ 1.15418451  1.29633212  1.30796587  1.15418451  1.42182304  1.68453827
  1.46009093  1.51413251  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 1.68453826633, last10PointsDistance.max() = 1.68453826633
Found trip end at 2015-08-21 21:26:42
------------------------------2015-08-21 21:31:42------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 21:32:12------------------------------
last5MinsDistances = [ 0.32824109] with length 1
last10PointsDistances = [ 0.32824109  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 21:32:42------------------------------
last5MinsDistances = [ 0.52304162  0.64879165] with length 2
last10PointsDistances = [ 0.52304162  0.64879165  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 21:33:12------------------------------
last5MinsDistances = [ 0.24481183  0.16512502  0.6950461 ] with length 3
last10PointsDistances = [ 0.24481183  0.16512502  0.6950461   0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 21:33:42------------------------------
last5MinsDistances = [ 1.9902313   2.09776472  2.48471505  1.94386499] with length 4
last10PointsDistances = [ 1.9902313   2.09776472  2.48471505  1.94386499  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 21:34:12------------------------------
last5MinsDistances = [ 1.95434435  2.20795169  1.59691973  2.19334952  3.37514618] with length 5
last10PointsDistances = [ 1.95434435  2.20795169  1.59691973  2.19334952  3.37514618  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 21:34:42------------------------------
last5MinsDistances = [ 0.05748346  0.36551186  0.56623468  0.25875199  1.9370478   1.960861  ] with length 6
last10PointsDistances = [ 0.05748346  0.36551186  0.56623468  0.25875199  1.9370478   1.960861    0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 21:35:12------------------------------
last5MinsDistances = [ 2.90594246  3.02298895  2.39517055  3.08952888  4.70628159  1.54943972
  2.93961843] with length 7
last10PointsDistances = [ 2.90594246  3.02298895  2.39517055  3.08952888  4.70628159  1.54943972
  2.93961843  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 21:35:42------------------------------
last5MinsDistances = [ 4.04898467  4.26410189  4.42928719  4.09901449  2.38532896  4.59187751
  3.99155741  6.1332622 ] with length 8
last10PointsDistances = [ 4.04898467  4.26410189  4.42928719  4.09901449  2.38532896  4.59187751
  3.99155741  6.1332622   0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 6.13326220477, last10PointsDistance.max() = 6.13326220477
Found trip end at 2015-08-21 21:31:42
------------------------------2015-08-21 21:36:12------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 21:36:42------------------------------
last5MinsDistances = [ 0.2818804] with length 1
last10PointsDistances = [ 0.2818804  0.       ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 21:37:12------------------------------
last5MinsDistances = [ 2.36715061  2.12664514] with length 2
last10PointsDistances = [ 2.36715061  2.12664514  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 21:37:42------------------------------
last5MinsDistances = [ 3.57674331  3.68747696  5.61216945] with length 3
last10PointsDistances = [ 3.57674331  3.68747696  5.61216945  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 21:38:12------------------------------
last5MinsDistances = [ 2.28102468  2.43376967  4.48447861  1.36803652] with length 4
last10PointsDistances = [ 2.28102468  2.43376967  4.48447861  1.36803652  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 21:38:42------------------------------
last5MinsDistances = [ 4.15116705  3.87144571  2.17088213  6.62802157  5.81052385] with length 5
last10PointsDistances = [ 4.15116705  3.87144571  2.17088213  6.62802157  5.81052385  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 21:39:12------------------------------
last5MinsDistances = [ 4.80493633  4.5230795   3.00931068  6.91623985  6.24280474  0.88041516] with length 6
last10PointsDistances = [ 4.80493633  4.5230795   3.00931068  6.91623985  6.24280474  0.88041516
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 21:39:42------------------------------
last5MinsDistances = [ 3.74820765  3.88743052  5.88163631  0.4592599   1.47124918  6.9963311
  7.31447771] with length 7
last10PointsDistances = [ 3.74820765  3.88743052  5.88163631  0.4592599   1.47124918  6.9963311
  7.31447771  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 21:40:12------------------------------
last5MinsDistances = [ 0.5186856   0.39008366  1.8814576   4.06493098  2.79000613  3.7749056
  4.47844677  4.25248758] with length 8
last10PointsDistances = [ 0.5186856   0.39008366  1.8814576   4.06493098  2.79000613  3.7749056
  4.47844677  4.25248758  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 4.47844677294, last10PointsDistance.max() = 4.47844677294
Found trip end at 2015-08-21 21:36:12
------------------------------2015-08-21 21:40:43------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 21:41:13------------------------------
last5MinsDistances = [ 0.74835093] with length 1
last10PointsDistances = [ 0.74835093  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 21:41:43------------------------------
last5MinsDistances = [ 5.0017644   5.32995169] with length 2
last10PointsDistances = [ 5.0017644   5.32995169  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 21:42:13------------------------------
last5MinsDistances = [ 0.67002958  0.07833621  5.29033642] with length 3
last10PointsDistances = [ 0.67002958  0.07833621  5.29033642  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 21:42:43------------------------------
last5MinsDistances = [ 4.6345488   4.93928627  0.41690256  4.90164633] with length 4
last10PointsDistances = [ 4.6345488   4.93928627  0.41690256  4.90164633  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 21:43:13------------------------------
last5MinsDistances = [ 0.40812189  0.37600172  5.05767359  0.30199183  4.67522873] with length 5
last10PointsDistances = [ 0.40812189  0.37600172  5.05767359  0.30199183  4.67522873  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 21:43:43------------------------------
last5MinsDistances = [ 0.          0.74835093  5.0017644   0.67002958  4.6345488   0.40812189] with length 6
last10PointsDistances = [ 0.          0.74835093  5.0017644   0.67002958  4.6345488   0.40812189
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 21:44:13------------------------------
last5MinsDistances = [ 0.6645606   0.09571807  5.32646606  0.04555081  4.93858387  0.31595406
  0.6645606 ] with length 7
last10PointsDistances = [ 0.6645606   0.09571807  5.32646606  0.04555081  4.93858387  0.31595406
  0.6645606   0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 21:44:43------------------------------
last5MinsDistances = [ 0.67002958  0.07833621  5.29033642  0.          4.90164633  0.30199183
  0.67002958  0.04555081] with length 8
last10PointsDistances = [ 0.67002958  0.07833621  5.29033642  0.          4.90164633  0.30199183
  0.67002958  0.04555081  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 5.29033642059, last10PointsDistance.max() = 5.29033642059
Found trip end at 2015-08-21 21:40:43
------------------------------2015-08-21 21:45:13------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 21:45:43------------------------------
last5MinsDistances = [ 4.378821] with length 1
last10PointsDistances = [ 4.378821  0.      ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 21:46:13------------------------------
last5MinsDistances = [ 7.15578171  3.98667349] with length 2
last10PointsDistances = [ 7.15578171  3.98667349  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 21:46:43------------------------------
last5MinsDistances = [ 4.41991586  0.2768507   4.21831964] with length 3
last10PointsDistances = [ 4.41991586  0.2768507   4.21831964  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 21:47:13------------------------------
last5MinsDistances = [ 2.73402448  2.14715736  5.90959267  2.05438206] with length 4
last10PointsDistances = [ 2.73402448  2.14715736  5.90959267  2.05438206  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 21:47:43------------------------------
last5MinsDistances = [ 0.89793636  5.25729424  8.02081802  5.28636198  3.49961314] with length 5
last10PointsDistances = [ 0.89793636  5.25729424  8.02081802  5.28636198  3.49961314  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 21:48:13------------------------------
last5MinsDistances = [ 4.43945916  0.33649671  3.67078697  0.6081692   2.36951388  5.32857657] with length 6
last10PointsDistances = [ 4.43945916  0.33649671  3.67078697  0.6081692   2.36951388  5.32857657
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 21:48:43------------------------------
last5MinsDistances = [ 4.53656306  0.53402803  3.47004253  0.79911365  2.54566716  5.42960482
  0.20189803] with length 7
last10PointsDistances = [ 4.53656306  0.53402803  3.47004253  0.79911365  2.54566716  5.42960482
  0.20189803  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 21:49:13------------------------------
last5MinsDistances = [ 4.41222537  0.20189803  3.79671663  0.47476855  2.27721239  5.29761445
  0.13459869  0.33370175] with length 8
last10PointsDistances = [ 4.41222537  0.20189803  3.79671663  0.47476855  2.27721239  5.29761445
  0.13459869  0.33370175  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 5.29761445059, last10PointsDistance.max() = 5.29761445059
Found trip end at 2015-08-21 21:45:13
------------------------------2015-08-21 21:49:43------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 21:50:13------------------------------
last5MinsDistances = [ 4.58147251] with length 1
last10PointsDistances = [ 4.58147251  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 21:50:43------------------------------
last5MinsDistances = [ 3.87144593  0.71315602] with length 2
last10PointsDistances = [ 3.87144593  0.71315602  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 21:51:13------------------------------
last5MinsDistances = [ 2.95166509  6.86896443  6.1800971 ] with length 3
last10PointsDistances = [ 2.95166509  6.86896443  6.1800971   0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 21:51:43------------------------------
last5MinsDistances = [ 1.95312768  6.20612639  5.49852604  1.07862697] with length 4
last10PointsDistances = [ 1.95312768  6.20612639  5.49852604  1.07862697  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 21:52:13------------------------------
last5MinsDistances = [ 0.47724469  4.7646647   4.0651085   3.21623262  2.16438822] with length 5
last10PointsDistances = [ 0.47724469  4.7646647   4.0651085   3.21623262  2.16438822  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 21:52:43------------------------------
last5MinsDistances = [ 3.55666276  7.46747796  6.78306844  0.62115294  1.63785738  3.80000668] with length 6
last10PointsDistances = [ 3.55666276  7.46747796  6.78306844  0.62115294  1.63785738  3.80000668
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 21:53:14------------------------------
last5MinsDistances = [ 0.86551673  4.63808722  3.95618912  3.66786737  2.60957959  0.45624147
  4.24706177] with length 7
last10PointsDistances = [ 0.86551673  4.63808722  3.95618912  3.66786737  2.60957959  0.45624147
  4.24706177  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 21:53:44------------------------------
last5MinsDistances = [ 4.67643263  0.32122123  0.83312358  6.8548612   6.23463836  4.88741182
  7.44532465  4.78779074] with length 8
last10PointsDistances = [ 4.67643263  0.32122123  0.83312358  6.8548612   6.23463836  4.88741182
  7.44532465  4.78779074  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 7.44532464519, last10PointsDistance.max() = 7.44532464519
Found trip end at 2015-08-21 21:49:43
------------------------------2015-08-21 21:54:14------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 21:54:44------------------------------
last5MinsDistances = [ 3.19433317] with length 1
last10PointsDistances = [ 3.19433317  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 21:55:14------------------------------
last5MinsDistances = [ 2.82550096  0.39648913] with length 2
last10PointsDistances = [ 2.82550096  0.39648913  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 21:55:44------------------------------
last5MinsDistances = [ 2.07591989  1.32588445  0.93172984] with length 3
last10PointsDistances = [ 2.07591989  1.32588445  0.93172984  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 21:56:14------------------------------
last5MinsDistances = [ 2.69235539  0.75617711  0.42041744  0.64782625] with length 4
last10PointsDistances = [ 2.69235539  0.75617711  0.42041744  0.64782625  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 21:56:44------------------------------
last5MinsDistances = [ 1.50262956  3.66777833  3.27230041  2.34246594  2.96337819] with length 5
last10PointsDistances = [ 1.50262956  3.66777833  3.27230041  2.34246594  2.96337819  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 21:57:14------------------------------
last5MinsDistances = [ 1.5884867   3.57555867  3.18167152  2.2499844   2.85970772  0.17364937] with length 6
last10PointsDistances = [ 1.5884867   3.57555867  3.18167152  2.2499844   2.85970772  0.17364937
  0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 21:57:44------------------------------
last5MinsDistances = [ 1.71926899  3.94839284  3.5535446   2.62252965  3.23758066  0.28964624
  0.38170481] with length 7
last10PointsDistances = [ 1.71926899  3.94839284  3.5535446   2.62252965  3.23758066  0.28964624
  0.38170481  0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 21:58:14------------------------------
last5MinsDistances = [ 3.14653193  6.03617934  5.64008978  4.72557962  5.36301079  2.42511277
  2.55911756  2.18159957] with length 8
last10PointsDistances = [ 3.14653193  6.03617934  5.64008978  4.72557962  5.36301079  2.42511277
  2.55911756  2.18159957  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 6.03617933999, last10PointsDistance.max() = 6.03617933999
Found trip end at 2015-08-21 21:54:14
------------------------------2015-08-21 21:58:44------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 21:59:14------------------------------
last5MinsDistances = [ 2.09858991] with length 1
last10PointsDistances = [ 2.09858991  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing
------------------------------2015-08-21 21:59:44------------------------------
last5MinsDistances = [ 0.58992878  2.55911756] with length 2
last10PointsDistances = [ 0.58992878  2.55911756  0.        ] with length 3, shape (3,)
len(last10PointsDistances) = 3, len(last5MinsDistances) = 2
Too few points to make a decision, continuing
------------------------------2015-08-21 22:00:14------------------------------
last5MinsDistances = [ 0.41185356  2.17693599  0.38876852] with length 3
last10PointsDistances = [ 0.41185356  2.17693599  0.38876852  0.        ] with length 4, shape (4,)
len(last10PointsDistances) = 4, len(last5MinsDistances) = 3
Too few points to make a decision, continuing
------------------------------2015-08-21 22:00:44------------------------------
last5MinsDistances = [ 4.81013731  3.2820938   4.97317948  4.62878673] with length 4
last10PointsDistances = [ 4.81013731  3.2820938   4.97317948  4.62878673  0.        ] with length 5, shape (5,)
len(last10PointsDistances) = 5, len(last5MinsDistances) = 4
Too few points to make a decision, continuing
------------------------------2015-08-21 22:01:14------------------------------
last5MinsDistances = [ 2.97405827  4.82106476  2.38908384  2.71401422  6.43910889] with length 5
last10PointsDistances = [ 2.97405827  4.82106476  2.38908384  2.71401422  6.43910889  0.        ] with length 6, shape (6,)
len(last10PointsDistances) = 6, len(last5MinsDistances) = 5
Too few points to make a decision, continuing
------------------------------2015-08-21 22:01:44------------------------------
last5MinsDistances = [  7.59565798   9.43933688   7.01824109   7.35160747  10.51718554
   4.63801325] with length 6
last10PointsDistances = [  7.59565798   9.43933688   7.01824109   7.35160747  10.51718554
   4.63801325   0.        ] with length 7, shape (7,)
len(last10PointsDistances) = 7, len(last5MinsDistances) = 6
Too few points to make a decision, continuing
------------------------------2015-08-21 22:01:52------------------------------
last5MinsDistances = [  7.94329644   9.76409255   7.36320035   7.69148736  10.76175775
   4.97772611   0.38824785] with length 7
last10PointsDistances = [  7.94329644   9.76409255   7.36320035   7.69148736  10.76175775
   4.97772611   0.38824785   0.        ] with length 8, shape (8,)
len(last10PointsDistances) = 8, len(last5MinsDistances) = 7
Too few points to make a decision, continuing
------------------------------2015-08-21 22:02:27------------------------------
last5MinsDistances = [ 2.64609301  4.28516938  2.06308163  2.31292197  5.68632532  0.77602696
  5.16835879  5.48444087] with length 8
last10PointsDistances = [ 2.64609301  4.28516938  2.06308163  2.31292197  5.68632532  0.77602696
  5.16835879  5.48444087  0.        ] with length 9, shape (9,)
len(last10PointsDistances) = 9, len(last5MinsDistances) = 8
last5MinsDistances.max() = 5.68632531726, last10PointsDistance.max() = 5.68632531726
Found trip end at 2015-08-21 21:58:44
------------------------------2015-08-21 22:02:57------------------------------
last5MinsDistances = [] with length 0
last10PointsDistances = [ 0.] with length 1, shape (1,)
len(last10PointsDistances) = 1, len(last5MinsDistances) = 0
Too few points to make a decision, continuing
------------------------------2015-08-21 22:03:27------------------------------
last5MinsDistances = [ 2.22565263] with length 1
last10PointsDistances = [ 2.22565263  0.        ] with length 2, shape (2,)
len(last10PointsDistances) = 2, len(last5MinsDistances) = 1
Too few points to make a decision, continuing

In [27]:
ipy.inline_map(lo.get_map(pd.DataFrame(my_trips_df_aug_21)))


Out[27]:

In [28]:
def make_trip(startDict, endDict):
    start = ad.AttrDict(startDict)
    end = ad.AttrDict(endDict)
    print "-" * 20 + str(start.formatted_time) + " -> " + str(end.formatted_time) + "-" * 20
    trip = ad.AttrDict({'user_id': myUUID, 'loc_filter': 'time',
                           'start_ts': start.mTime, 'end_ts': end.mTime,
                           'start_time': start.formatted_time, 'end_time': end.formatted_time})
    return trip

In [29]:
my_trips_list_aug_21 = [make_trip(s1, s2) for s1, s2 in zip(my_trips_df_aug_21, my_trips_df_aug_21[1:])]


--------------------2015-08-21 07:55:01 -> 2015-08-21 08:10:17--------------------
--------------------2015-08-21 08:10:17 -> 2015-08-21 09:47:17--------------------
--------------------2015-08-21 09:47:17 -> 2015-08-21 19:09:21--------------------
--------------------2015-08-21 19:09:21 -> 2015-08-21 19:14:28--------------------
--------------------2015-08-21 19:14:28 -> 2015-08-21 19:18:59--------------------
--------------------2015-08-21 19:18:59 -> 2015-08-21 19:23:29--------------------
--------------------2015-08-21 19:23:29 -> 2015-08-21 19:27:59--------------------
--------------------2015-08-21 19:27:59 -> 2015-08-21 19:33:00--------------------
--------------------2015-08-21 19:33:00 -> 2015-08-21 19:37:30--------------------
--------------------2015-08-21 19:37:30 -> 2015-08-21 19:42:00--------------------
--------------------2015-08-21 19:42:00 -> 2015-08-21 19:46:30--------------------
--------------------2015-08-21 19:46:30 -> 2015-08-21 19:50:32--------------------
--------------------2015-08-21 19:50:32 -> 2015-08-21 19:55:32--------------------
--------------------2015-08-21 19:55:32 -> 2015-08-21 20:00:03--------------------
--------------------2015-08-21 20:00:03 -> 2015-08-21 20:04:33--------------------
--------------------2015-08-21 20:04:33 -> 2015-08-21 20:09:03--------------------
--------------------2015-08-21 20:09:03 -> 2015-08-21 20:13:33--------------------
--------------------2015-08-21 20:13:33 -> 2015-08-21 20:18:03--------------------
--------------------2015-08-21 20:18:03 -> 2015-08-21 20:22:34--------------------
--------------------2015-08-21 20:22:34 -> 2015-08-21 20:27:34--------------------
--------------------2015-08-21 20:27:34 -> 2015-08-21 20:32:05--------------------
--------------------2015-08-21 20:32:05 -> 2015-08-21 20:37:05--------------------
--------------------2015-08-21 20:37:05 -> 2015-08-21 20:41:35--------------------
--------------------2015-08-21 20:41:35 -> 2015-08-21 20:46:06--------------------
--------------------2015-08-21 20:46:06 -> 2015-08-21 20:50:39--------------------
--------------------2015-08-21 20:50:39 -> 2015-08-21 20:55:09--------------------
--------------------2015-08-21 20:55:09 -> 2015-08-21 20:59:40--------------------
--------------------2015-08-21 20:59:40 -> 2015-08-21 21:04:10--------------------
--------------------2015-08-21 21:04:10 -> 2015-08-21 21:08:40--------------------
--------------------2015-08-21 21:08:40 -> 2015-08-21 21:13:11--------------------
--------------------2015-08-21 21:13:11 -> 2015-08-21 21:17:41--------------------
--------------------2015-08-21 21:17:41 -> 2015-08-21 21:22:11--------------------
--------------------2015-08-21 21:22:11 -> 2015-08-21 21:26:42--------------------
--------------------2015-08-21 21:26:42 -> 2015-08-21 21:31:42--------------------
--------------------2015-08-21 21:31:42 -> 2015-08-21 21:36:12--------------------
--------------------2015-08-21 21:36:12 -> 2015-08-21 21:40:43--------------------
--------------------2015-08-21 21:40:43 -> 2015-08-21 21:45:13--------------------
--------------------2015-08-21 21:45:13 -> 2015-08-21 21:49:43--------------------
--------------------2015-08-21 21:49:43 -> 2015-08-21 21:54:14--------------------
--------------------2015-08-21 21:54:14 -> 2015-08-21 21:58:44--------------------

In the above list, the last several "trips" are caused by the bug in the code that did not detect the trip end correctly. Let us ignore them.


In [30]:
my_trips_list_aug_21 = my_trips_list_aug_21[0:3]; my_trips_list_aug_21


Out[30]:
[AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'end_time': Timestamp('2015-08-21 08:10:17'), 'start_time': Timestamp('2015-08-21 07:55:01'), 'end_ts': 1440169817278, 'start_ts': 1440168901638, 'loc_filter': 'time'}),
 AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'end_time': Timestamp('2015-08-21 09:47:17'), 'start_time': Timestamp('2015-08-21 08:10:17'), 'end_ts': 1440175637229, 'start_ts': 1440169817278, 'loc_filter': 'time'}),
 AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'end_time': Timestamp('2015-08-21 19:09:21'), 'start_time': Timestamp('2015-08-21 09:47:17'), 'end_ts': 1440209361354, 'start_ts': 1440175637229, 'loc_filter': 'time'})]

In [31]:
curr_activity_df_0 = lq.get_activities_for_section(my_trips_list_aug_21[0])
print curr_activity_df_0[['formatted_time', 'agb', 'agc', 'activity']]


       formatted_time  agb  agc               activity
0 2015-08-21 08:03:47    5  100     Activities.TILTING
1 2015-08-21 08:04:20    0  100  Activities.IN_VEHICLE
2 2015-08-21 08:04:49    0  100  Activities.IN_VEHICLE
3 2015-08-21 08:05:19    0   92  Activities.IN_VEHICLE
4 2015-08-21 08:07:15    3   95       Activities.STILL
5 2015-08-21 08:08:20    0   92  Activities.IN_VEHICLE
6 2015-08-21 08:08:50    0  100  Activities.IN_VEHICLE
7 2015-08-21 08:09:19    0  100  Activities.IN_VEHICLE
8 2015-08-21 08:09:49    0  100  Activities.IN_VEHICLE

In [32]:
curr_activity_df_2 = lq.get_activities_for_section(my_trips_list_aug_21[2])
print curr_activity_df_2[['formatted_time', 'agb', 'agc', 'activity']]


         formatted_time  agb  agc               activity
0   2015-08-21 09:47:37    2   92     Activities.ON_FOOT
1   2015-08-21 09:48:08    2   92     Activities.ON_FOOT
2   2015-08-21 09:49:59    2  100     Activities.ON_FOOT
3   2015-08-21 09:50:10    2   92     Activities.ON_FOOT
4   2015-08-21 09:50:36    5  100     Activities.TILTING
5   2015-08-21 09:51:01    5  100     Activities.TILTING
6   2015-08-21 09:51:36    5  100     Activities.TILTING
7   2015-08-21 17:13:54    5  100     Activities.TILTING
8   2015-08-21 17:14:01    2   97     Activities.ON_FOOT
9   2015-08-21 17:14:24    2  100     Activities.ON_FOOT
10  2015-08-21 17:14:54    5  100     Activities.TILTING
11  2015-08-21 17:15:01    2  100     Activities.ON_FOOT
12  2015-08-21 17:15:24    2  100     Activities.ON_FOOT
13  2015-08-21 17:15:54    5  100     Activities.TILTING
14  2015-08-21 17:16:01    2  100     Activities.ON_FOOT
15  2015-08-21 17:16:24    5  100     Activities.TILTING
16  2015-08-21 17:16:28    5  100     Activities.TILTING
17  2015-08-21 17:16:31    5  100     Activities.TILTING
18  2015-08-21 17:16:32    2   90     Activities.ON_FOOT
19  2015-08-21 17:16:54    5  100     Activities.TILTING
20  2015-08-21 17:17:09    2   90     Activities.ON_FOOT
21  2015-08-21 17:17:24    5  100     Activities.TILTING
22  2015-08-21 17:17:51    2   97     Activities.ON_FOOT
23  2015-08-21 17:18:19    2   62     Activities.ON_FOOT
24  2015-08-21 17:18:25    2  100     Activities.ON_FOOT
25  2015-08-21 17:18:54    2  100     Activities.ON_FOOT
26  2015-08-21 17:19:28    2  100     Activities.ON_FOOT
27  2015-08-21 17:19:57    2  100     Activities.ON_FOOT
28  2015-08-21 17:20:27    2  100     Activities.ON_FOOT
29  2015-08-21 17:21:10    2   62     Activities.ON_FOOT
..                  ...  ...  ...                    ...
254 2015-08-21 18:53:52    0   92  Activities.IN_VEHICLE
255 2015-08-21 18:54:22    0  100  Activities.IN_VEHICLE
256 2015-08-21 18:54:52    0  100  Activities.IN_VEHICLE
257 2015-08-21 18:55:23    5  100     Activities.TILTING
258 2015-08-21 18:55:39    5  100     Activities.TILTING
259 2015-08-21 18:55:40    0   49  Activities.IN_VEHICLE
260 2015-08-21 18:56:06    0   48  Activities.IN_VEHICLE
261 2015-08-21 18:56:22    0  100  Activities.IN_VEHICLE
262 2015-08-21 18:57:18    0   70  Activities.IN_VEHICLE
263 2015-08-21 18:57:53    5  100     Activities.TILTING
264 2015-08-21 18:58:23    0   63  Activities.IN_VEHICLE
265 2015-08-21 18:58:53    0   54  Activities.IN_VEHICLE
266 2015-08-21 18:59:47    2   48     Activities.ON_FOOT
267 2015-08-21 19:00:23    2   85     Activities.ON_FOOT
268 2015-08-21 19:00:53    2   92     Activities.ON_FOOT
269 2015-08-21 19:01:23    2   69     Activities.ON_FOOT
270 2015-08-21 19:01:53    2  100     Activities.ON_FOOT
271 2015-08-21 19:02:48    4   52     Activities.UNKNOWN
272 2015-08-21 19:03:37    1   92  Activities.ON_BICYCLE
273 2015-08-21 19:04:18    0   46  Activities.IN_VEHICLE
274 2015-08-21 19:04:58    5  100     Activities.TILTING
275 2015-08-21 19:05:07    5  100     Activities.TILTING
276 2015-08-21 19:05:15    1   50  Activities.ON_BICYCLE
277 2015-08-21 19:06:18    0   46  Activities.IN_VEHICLE
278 2015-08-21 19:07:10    1   87  Activities.ON_BICYCLE
279 2015-08-21 19:07:53    1   92  Activities.ON_BICYCLE
280 2015-08-21 19:08:24    1   92  Activities.ON_BICYCLE
281 2015-08-21 19:08:53    5  100     Activities.TILTING
282 2015-08-21 19:09:02    5  100     Activities.TILTING
283 2015-08-21 19:09:19    1   50  Activities.ON_BICYCLE

[284 rows x 4 columns]

In [33]:
curr_section_list_2 = ss.segment_into_sections(my_trips_list_aug_21[2])


At 2015-08-21 09:47:37, retained existing activity Activities.ON_FOOT
At 2015-08-21 09:48:08, retained existing activity Activities.ON_FOOT
At 2015-08-21 09:49:59, retained existing activity Activities.ON_FOOT
At 2015-08-21 09:50:10, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:14:01, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:14:24, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:15:01, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:15:24, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:16:01, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:16:32, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:17:09, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:17:51, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:18:19, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:18:25, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:18:54, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:19:28, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:19:57, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:20:27, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:21:10, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:21:30, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:22:00, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:22:56, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:23:26, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:23:55, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:24:00, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:24:31, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:25:27, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:26:17, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:26:31, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:27:23, retained existing activity Activities.ON_FOOT
At 2015-08-21 17:28:23, found new activity Activities.IN_VEHICLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-21 17:27:23
At 2015-08-21 17:29:01, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:29:30, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:30:23, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:30:45, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:31:06, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:31:09, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:31:13, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:31:16, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:31:31, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:32:15, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:32:19, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:33:15, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:33:31, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:34:23, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:34:27, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:34:30, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:34:34, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:34:37, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:34:58, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:35:43, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:35:47, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:36:32, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:36:36, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:38:19, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:38:58, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:39:00, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:39:19, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:39:22, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:39:26, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:39:29, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:39:33, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:39:36, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:39:40, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:39:44, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:39:47, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:39:51, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:40:11, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:40:57, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:41:44, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:42:14, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:42:44, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:43:14, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:44:01, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:45:10, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:45:42, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:46:26, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:46:29, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:46:47, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:47:12, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:47:42, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:48:12, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:48:47, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:49:34, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:50:26, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:51:13, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:51:16, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:51:43, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:52:36, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:52:48, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:53:09, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:54:06, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:54:09, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:54:13, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:54:16, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:54:20, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:54:24, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:54:27, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:54:31, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:54:34, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:54:38, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:54:57, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:55:19, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:56:06, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:57:05, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:57:48, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:58:18, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:58:48, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 17:59:35, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:00:04, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:00:08, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:00:11, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:00:15, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:00:19, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:00:22, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:00:57, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:01:35, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:02:15, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:02:49, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:03:19, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:03:49, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:04:19, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:05:06, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:06:06, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:06:49, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:07:36, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:08:36, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:09:37, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:09:40, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:09:55, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:10:20, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:10:50, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:11:37, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:12:37, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:13:20, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:14:12, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:14:58, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:15:33, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:15:50, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:16:37, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:16:41, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:17:20, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:17:50, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:18:20, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:19:16, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:19:50, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:20:20, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:20:50, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:21:51, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:22:34, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:22:51, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:23:21, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:23:50, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:24:20, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:24:51, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:25:46, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:26:28, found new activity Activities.ON_FOOT compared to current Activities.IN_VEHICLE - creating new section with start_time 2015-08-21 18:25:46
At 2015-08-21 18:26:51, retained existing activity Activities.ON_FOOT
At 2015-08-21 18:27:21, retained existing activity Activities.ON_FOOT
At 2015-08-21 18:27:51, retained existing activity Activities.ON_FOOT
At 2015-08-21 18:28:21, retained existing activity Activities.ON_FOOT
At 2015-08-21 18:29:16, retained existing activity Activities.ON_FOOT
At 2015-08-21 18:30:21, retained existing activity Activities.ON_FOOT
At 2015-08-21 18:30:51, retained existing activity Activities.ON_FOOT
At 2015-08-21 18:31:46, found new activity Activities.IN_VEHICLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-21 18:30:51
At 2015-08-21 18:32:21, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:32:51, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:33:21, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:33:51, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:34:21, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:34:51, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:35:21, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:36:17, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:36:52, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:37:22, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:37:52, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:38:22, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:38:52, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:39:22, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:40:09, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:40:52, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:41:39, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:42:22, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:42:52, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:43:22, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:43:52, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:44:39, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:44:43, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:45:39, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:45:43, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:45:57, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:46:22, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:46:52, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:47:22, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:47:52, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:48:22, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:48:52, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:49:22, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:50:17, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:50:52, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:51:22, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:52:09, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:52:52, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:53:22, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:53:52, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:54:22, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:54:52, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:55:40, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:56:06, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:56:22, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:57:18, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:58:23, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:58:53, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 18:59:47, retained existing activity Activities.IN_VEHICLE
At 2015-08-21 19:00:23, found new activity Activities.ON_FOOT compared to current Activities.IN_VEHICLE - creating new section with start_time 2015-08-21 18:59:47
At 2015-08-21 19:00:53, retained existing activity Activities.ON_FOOT
At 2015-08-21 19:01:23, retained existing activity Activities.ON_FOOT
At 2015-08-21 19:01:53, retained existing activity Activities.ON_FOOT
At 2015-08-21 19:02:48, retained existing activity Activities.ON_FOOT
At 2015-08-21 19:03:37, found new activity Activities.ON_BICYCLE compared to current Activities.ON_FOOT - creating new section with start_time 2015-08-21 19:02:48
At 2015-08-21 19:04:18, retained existing activity Activities.ON_BICYCLE
At 2015-08-21 19:05:15, retained existing activity Activities.ON_BICYCLE
At 2015-08-21 19:06:18, retained existing activity Activities.ON_BICYCLE
At 2015-08-21 19:07:10, retained existing activity Activities.ON_BICYCLE
At 2015-08-21 19:07:53, retained existing activity Activities.ON_BICYCLE
At 2015-08-21 19:08:24, retained existing activity Activities.ON_BICYCLE
At 2015-08-21 19:09:19, retained existing activity Activities.ON_BICYCLE
Detected trip end! Ending section at 2015-08-21 19:09:21

In [34]:
raw_activity_list = lq.get_activities_for_section(my_trips_list_aug_21[2])
print raw_activity_list[raw_activity_list.activity != lq.Activities.TILTING][100:150]


     CK  agb  agc filter                  key platform  read_ts     type  \
138   1    3   77   time  background/activity  android        0  message   
139   1    0   97   time  background/activity  android        0  message   
140   1    0   46   time  background/activity  android        0  message   
141   1    3   90   time  background/activity  android        0  message   
142   1    0  100   time  background/activity  android        0  message   
143   1    0  100   time  background/activity  android        0  message   
144   1    0   62   time  background/activity  android        0  message   
145   1    0   85   time  background/activity  android        0  message   
147   1    0   90   time  background/activity  android        0  message   
148   1    3   64   time  background/activity  android        0  message   
149   1    3  100   time  background/activity  android        0  message   
150   1    3   92   time  background/activity  android        0  message   
151   1    3   54   time  background/activity  android        0  message   
152   1    3   46   time  background/activity  android        0  message   
153   1    3   85   time  background/activity  android        0  message   
155   1    4   50   time  background/activity  android        0  message   
156   1    4   50   time  background/activity  android        0  message   
159   1    3   46   time  background/activity  android        0  message   
161   1    0   80   time  background/activity  android        0  message   
162   1    0   69   time  background/activity  android        0  message   
163   1    0  100   time  background/activity  android        0  message   
164   1    0   85   time  background/activity  android        0  message   
165   1    3  100   time  background/activity  android        0  message   
166   1    0   97   time  background/activity  android        0  message   
167   1    0   77   time  background/activity  android        0  message   
168   1    3   82   time  background/activity  android        0  message   
169   1    0  100   time  background/activity  android        0  message   
172   1    0   79   time  background/activity  android        0  message   
173   1    0   54   time  background/activity  android        0  message   
174   1    0  100   time  background/activity  android        0  message   
175   1    0   92   time  background/activity  android        0  message   
176   1    0  100   time  background/activity  android        0  message   
177   1    3   87   time  background/activity  android        0  message   
178   1    0  100   time  background/activity  android        0  message   
179   1    0   92   time  background/activity  android        0  message   
180   1    0   85   time  background/activity  android        0  message   
181   1    0   50   time  background/activity  android        0  message   
182   1    3   75   time  background/activity  android        0  message   
183   1    3   85   time  background/activity  android        0  message   
185   1    0   85   time  background/activity  android        0  message   
186   1    0  100   time  background/activity  android        0  message   
187   1    0   69   time  background/activity  android        0  message   
188   1    0  100   time  background/activity  android        0  message   
189   1    0   77   time  background/activity  android        0  message   
190   1    0   71   time  background/activity  android        0  message   
191   1    0  100   time  background/activity  android        0  message   
192   1    0  100   time  background/activity  android        0  message   
193   1    0  100   time  background/activity  android        0  message   
194   1    3   65   time  background/activity  android        0  message   
195   1    0   97   time  background/activity  android        0  message   

          write_ts      formatted_time               activity  
138  1440204878601 2015-08-21 17:54:38       Activities.STILL  
139  1440204897768 2015-08-21 17:54:57  Activities.IN_VEHICLE  
140  1440204919310 2015-08-21 17:55:19  Activities.IN_VEHICLE  
141  1440204966321 2015-08-21 17:56:06       Activities.STILL  
142  1440205025924 2015-08-21 17:57:05  Activities.IN_VEHICLE  
143  1440205068786 2015-08-21 17:57:48  Activities.IN_VEHICLE  
144  1440205098964 2015-08-21 17:58:18  Activities.IN_VEHICLE  
145  1440205128931 2015-08-21 17:58:48  Activities.IN_VEHICLE  
147  1440205175867 2015-08-21 17:59:35  Activities.IN_VEHICLE  
148  1440205204730 2015-08-21 18:00:04       Activities.STILL  
149  1440205208159 2015-08-21 18:00:08       Activities.STILL  
150  1440205211626 2015-08-21 18:00:11       Activities.STILL  
151  1440205215078 2015-08-21 18:00:15       Activities.STILL  
152  1440205219027 2015-08-21 18:00:19       Activities.STILL  
153  1440205222469 2015-08-21 18:00:22       Activities.STILL  
155  1440205257673 2015-08-21 18:00:57     Activities.UNKNOWN  
156  1440205295983 2015-08-21 18:01:35     Activities.UNKNOWN  
159  1440205335869 2015-08-21 18:02:15       Activities.STILL  
161  1440205369199 2015-08-21 18:02:49  Activities.IN_VEHICLE  
162  1440205399229 2015-08-21 18:03:19  Activities.IN_VEHICLE  
163  1440205429262 2015-08-21 18:03:49  Activities.IN_VEHICLE  
164  1440205459398 2015-08-21 18:04:19  Activities.IN_VEHICLE  
165  1440205506480 2015-08-21 18:05:06       Activities.STILL  
166  1440205566273 2015-08-21 18:06:06  Activities.IN_VEHICLE  
167  1440205609649 2015-08-21 18:06:49  Activities.IN_VEHICLE  
168  1440205656565 2015-08-21 18:07:36       Activities.STILL  
169  1440205716998 2015-08-21 18:08:36  Activities.IN_VEHICLE  
172  1440205777412 2015-08-21 18:09:37  Activities.IN_VEHICLE  
173  1440205780605 2015-08-21 18:09:40  Activities.IN_VEHICLE  
174  1440205795315 2015-08-21 18:09:55  Activities.IN_VEHICLE  
175  1440205820412 2015-08-21 18:10:20  Activities.IN_VEHICLE  
176  1440205850345 2015-08-21 18:10:50  Activities.IN_VEHICLE  
177  1440205897550 2015-08-21 18:11:37       Activities.STILL  
178  1440205957352 2015-08-21 18:12:37  Activities.IN_VEHICLE  
179  1440206000566 2015-08-21 18:13:20  Activities.IN_VEHICLE  
180  1440206052351 2015-08-21 18:14:12  Activities.IN_VEHICLE  
181  1440206098751 2015-08-21 18:14:58  Activities.IN_VEHICLE  
182  1440206133841 2015-08-21 18:15:33       Activities.STILL  
183  1440206150726 2015-08-21 18:15:50       Activities.STILL  
185  1440206197664 2015-08-21 18:16:37  Activities.IN_VEHICLE  
186  1440206201152 2015-08-21 18:16:41  Activities.IN_VEHICLE  
187  1440206240620 2015-08-21 18:17:20  Activities.IN_VEHICLE  
188  1440206270730 2015-08-21 18:17:50  Activities.IN_VEHICLE  
189  1440206300626 2015-08-21 18:18:20  Activities.IN_VEHICLE  
190  1440206356083 2015-08-21 18:19:16  Activities.IN_VEHICLE  
191  1440206390867 2015-08-21 18:19:50  Activities.IN_VEHICLE  
192  1440206420939 2015-08-21 18:20:20  Activities.IN_VEHICLE  
193  1440206450900 2015-08-21 18:20:50  Activities.IN_VEHICLE  
194  1440206511080 2015-08-21 18:21:51       Activities.STILL  
195  1440206554516 2015-08-21 18:22:34  Activities.IN_VEHICLE  

In [35]:
curr_section_list_2


Out[35]:
[AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': Timestamp('2015-08-21 09:47:17'), 'end_ts': 1440203243798, 'start_ts': 1440175637229, 'end_time': '2015-08-21 17:27:23', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}),
 AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 21, 17, 27, 23), 'end_ts': 1440206746525, 'start_ts': 1440203243798, 'end_time': '2015-08-21 18:25:46', 'activity': <Activities.IN_VEHICLE: 0>, 'loc_filter': 'time'}),
 AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 21, 18, 25, 46), 'end_ts': 1440207051337, 'start_ts': 1440206746525, 'end_time': '2015-08-21 18:30:51', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}),
 AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 21, 18, 30, 51), 'end_ts': 1440208787154, 'start_ts': 1440207051337, 'end_time': '2015-08-21 18:59:47', 'activity': <Activities.IN_VEHICLE: 0>, 'loc_filter': 'time'}),
 AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 21, 18, 59, 47), 'end_ts': 1440208968804, 'start_ts': 1440208787154, 'end_time': '2015-08-21 19:02:48', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}),
 AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 21, 19, 2, 48), 'end_ts': 1440209361354, 'start_ts': 1440208968804, 'end_time': Timestamp('2015-08-21 19:09:21'), 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'})]

In [36]:
curr_map_section_list_2 = lo.get_map_list_after_segmentation([(my_trips_list_aug_21[2], curr_section_list_2)])


DEBUG:root:==================== 2015-08-21 09:47:17 -> 2015-08-21 19:09:21 ====================
DEBUG:root:-------------------- 0: 2015-08-21 09:47:17 -> 2015-08-21 17:27:23 --------------------
DEBUG:root:filtering points Int64Index([13, 14, 15, 16], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (17, 29) to (13, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': Timestamp('2015-08-21 09:47:17'), 'end_ts': 1440203243798, 'start_ts': 1440175637229, 'end_time': '2015-08-21 17:27:23', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (13, 29), formatted_time.head() = 0   2015-08-21 09:48:02
1   2015-08-21 09:48:33
2   2015-08-21 09:49:03
3   2015-08-21 09:49:31
4   2015-08-21 09:50:02
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 1: 2015-08-21 17:27:23 -> 2015-08-21 18:25:46 --------------------
DEBUG:root:filtering points Int64Index([17, 18, 19, 20, 21, 22, 23, 24, 28, 29, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 44, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 88, 89, 90, 91, 94, 96, 97, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (105, 29) to (15, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 21, 17, 27, 23), 'end_ts': 1440206746525, 'start_ts': 1440203243798, 'end_time': '2015-08-21 18:25:46', 'activity': <Activities.IN_VEHICLE: 0>, 'loc_filter': 'time'}), section_df.shape = (15, 29), formatted_time.head() = 0   2015-08-21 17:31:30
1   2015-08-21 17:31:51
2   2015-08-21 17:32:29
3   2015-08-21 17:35:39
4   2015-08-21 17:35:39
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 2: 2015-08-21 18:25:46 -> 2015-08-21 18:30:51 --------------------
DEBUG:root:filtering points Int64Index([131], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (11, 29) to (10, 29)
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 21, 18, 25, 46), 'end_ts': 1440207051337, 'start_ts': 1440206746525, 'end_time': '2015-08-21 18:30:51', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (10, 29), formatted_time.head() = 0   2015-08-21 18:25:48
1   2015-08-21 18:26:18
2   2015-08-21 18:26:48
3   2015-08-21 18:27:18
4   2015-08-21 18:27:48
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 3: 2015-08-21 18:30:51 -> 2015-08-21 18:59:47 --------------------
DEBUG:root:filtering points Int64Index([134, 135, 136, 137, 138, 139, 140, 145, 146, 147, 148, 149, 155, 156, 157, 158, 159, 161, 162, 167, 168, 169, 170, 172, 173, 174, 175, 176], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (44, 29) to (16, 29)
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 21, 18, 30, 51), 'end_ts': 1440208787154, 'start_ts': 1440207051337, 'end_time': '2015-08-21 18:59:47', 'activity': <Activities.IN_VEHICLE: 0>, 'loc_filter': 'time'}), section_df.shape = (16, 29), formatted_time.head() = 0   2015-08-21 18:31:18
1   2015-08-21 18:36:19
2   2015-08-21 18:36:49
3   2015-08-21 18:37:19
4   2015-08-21 18:38:49
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 4: 2015-08-21 18:59:47 -> 2015-08-21 19:02:48 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (6, 29) to (6, 29)
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 21, 18, 59, 47), 'end_ts': 1440208968804, 'start_ts': 1440208787154, 'end_time': '2015-08-21 19:02:48', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (6, 29), formatted_time.head() = 0   2015-08-21 18:59:50
1   2015-08-21 19:00:24
2   2015-08-21 19:00:49
3   2015-08-21 19:01:20
4   2015-08-21 19:01:50
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 5: 2015-08-21 19:02:48 -> 2015-08-21 19:09:21 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (13, 29) to (13, 29)
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 21, 19, 2, 48), 'end_ts': 1440209361354, 'start_ts': 1440208968804, 'end_time': Timestamp('2015-08-21 19:09:21'), 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (13, 29), formatted_time.head() = 0   2015-08-21 19:02:50
1   2015-08-21 19:03:20
2   2015-08-21 19:03:50
3   2015-08-21 19:04:20
4   2015-08-21 19:04:50
Name: formatted_time, dtype: datetime64[ns]
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440175637229}}, {'data.mTime': {'$lt': 1440209361354}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'} 

In [37]:
ipy.inline_map(curr_map_section_list_2[0])


Out[37]:

In [38]:
len(curr_section_list_2)


Out[38]:
6

In [39]:
import emission.analysis.classification.cleaning.speed_outlier_detection as cso
import emission.analysis.classification.cleaning.jump_smoothing as cjs

In [40]:
reload(cso)
reload(cjs)


Out[40]:
<module 'emission.analysis.classification.cleaning.jump_smoothing' from '/Users/shankari/e-mission/e-mission-server/emission/analysis/classification/cleaning/jump_smoothing.pyc'>

In [41]:
reload(lo.ls)


Out[41]:
<module 'emission.analysis.classification.cleaning.location_smoothing' from '/Users/shankari/e-mission/e-mission-server/emission/analysis/classification/cleaning/location_smoothing.pyc'>

In [42]:
curr_filtered_map_list_2 = lo.evaluate_filtering(curr_section_list_2, [cso.BoxplotOutlier(ignore_zeros=True)], [cjs.SmoothZigzag()])


DEBUG:root:filtering points Int64Index([13, 14, 15, 16], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (17, 29) to (13, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:filtering points Int64Index([13, 14, 15, 16], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (17, 29) to (13, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25    0.080789
0.75    1.040615
Name: speed, dtype: float64
DEBUG:root:iqr 0.959825903999
DEBUG:root:For cluster 0 - 12, distance = 237.851079012, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 12, 237.851079012)] with size 1
INFO:root:No jumps, nothing to filter
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440175637229}}, {'data.mTime': {'$lt': 1440203243798}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'} 
After filtering with <emission.analysis.classification.cleaning.speed_outlier_detection.BoxplotOutlier object at 0x10b9c6910>, <emission.analysis.classification.cleaning.jump_smoothing.SmoothZigzag object at 0x10b9c6950>, size is (13, 29)
DEBUG:root:filtering points Int64Index([0, 1, 2, 3, 4, 5, 6, 7, 11, 12, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 27, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 77, 79, 80, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (105, 29) to (15, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:filtering points Int64Index([0, 1, 2, 3, 4, 5, 6, 7, 11, 12, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 27, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 77, 79, 80, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (105, 29) to (15, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25     7.530054
0.75    13.955832
Name: speed, dtype: float64
DEBUG:root:iqr 6.42577771926
DEBUG:root:For cluster 0 - 1, distance = 0.0, is_cluster = True
DEBUG:root:For cluster 1 - 14, distance = 22685.7368091, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 1, 0.0), Segment(1, 14, 22685.7368091)] with size 2
DEBUG:root:shortest_non_cluster_segment = 1
DEBUG:root:Finished marking segment states for direction IterationDirection.RIGHT 
DEBUG:root:Processing segment 0: Segment(0, 1, 0.0), expecting state Segment_State.BAD
DEBUG:root:At the end of the loop for direction IterationDirection.LEFT, i = -1
DEBUG:root:Finished marking segment states for direction IterationDirection.LEFT 
DEBUG:root:unknown_segments = []
DEBUG:root:bad_segments = [Segment(0, 1, 0.0)]
DEBUG:root:after setting values, outlier_mask = [0]
DEBUG:root:point details are    mLatitude  mLongitude  mAccuracy      formatted_time
0  37.845374 -122.270862       91.2 2015-08-21 17:31:30
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25     7.354320
0.75    13.020115
Name: speed, dtype: float64
DEBUG:root:iqr 5.66579501398
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440203243798}}, {'data.mTime': {'$lt': 1440206746525}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'} 
After filtering with <emission.analysis.classification.cleaning.speed_outlier_detection.BoxplotOutlier object at 0x10b9c6910>, <emission.analysis.classification.cleaning.jump_smoothing.SmoothZigzag object at 0x10b9c6950>, size is (14, 29)
DEBUG:root:filtering points Int64Index([9], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (11, 28) to (10, 28)
DEBUG:root:filtering points Int64Index([9], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (11, 28) to (10, 28)
DEBUG:root:quartile values are 0.25    0.266927
0.75    0.712135
Name: speed, dtype: float64
DEBUG:root:iqr 0.445207804397
DEBUG:root:For cluster 0 - 3, distance = 6.33026652385, is_cluster = True
DEBUG:root:For cluster 3 - 4, distance = 0.0, is_cluster = True
DEBUG:root:For cluster 4 - 9, distance = 6.90708147114, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 3, 6.33026652385), Segment(3, 4, 0.0), Segment(4, 9, 6.90708147114)] with size 3
DEBUG:root:Processing segment 1: Segment(3, 4, 0.0), expecting state Segment_State.BAD
DEBUG:root:At the end of the loop for direction IterationDirection.RIGHT, i = 2
DEBUG:root:Processing segment 2: Segment(4, 9, 6.90708147114), expecting state Segment_State.GOOD
DEBUG:root:At the end of the loop for direction IterationDirection.RIGHT, i = 3
DEBUG:root:Finished marking segment states for direction IterationDirection.RIGHT 
DEBUG:root:Finished marking segment states for direction IterationDirection.LEFT 
DEBUG:root:unknown_segments = []
DEBUG:root:bad_segments = [Segment(3, 4, 0.0)]
DEBUG:root:after setting values, outlier_mask = [3]
DEBUG:root:point details are    mLatitude  mLongitude  mAccuracy      formatted_time
3  37.600239 -122.388731       55.5 2015-08-21 18:27:18
DEBUG:root:quartile values are 0.25    0.204562
0.75    0.446306
Name: speed, dtype: float64
DEBUG:root:iqr 0.241744351021
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440206746525}}, {'data.mTime': {'$lt': 1440207051337}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'} 
After filtering with <emission.analysis.classification.cleaning.speed_outlier_detection.BoxplotOutlier object at 0x10b9c6910>, <emission.analysis.classification.cleaning.jump_smoothing.SmoothZigzag object at 0x10b9c6950>, size is (9, 28)
DEBUG:root:filtering points Int64Index([1, 2, 3, 4, 5, 6, 7, 12, 13, 14, 15, 16, 22, 23, 24, 25, 26, 28, 29, 34, 35, 36, 37, 39, 40, 41, 42, 43], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (44, 28) to (16, 28)
DEBUG:root:filtering points Int64Index([1, 2, 3, 4, 5, 6, 7, 12, 13, 14, 15, 16, 22, 23, 24, 25, 26, 28, 29, 34, 35, 36, 37, 39, 40, 41, 42, 43], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (44, 28) to (16, 28)
DEBUG:root:quartile values are 0.25    21.438677
0.75    32.723148
Name: speed, dtype: float64
DEBUG:root:iqr 11.2844705659
DEBUG:root:For cluster 0 - 4, distance = 7549.77212678, is_cluster = False
DEBUG:root:For cluster 4 - 5, distance = 0.0, is_cluster = True
DEBUG:root:For cluster 5 - 15, distance = 15029.8828953, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 4, 7549.77212678), Segment(4, 5, 0.0), Segment(5, 15, 15029.8828953)] with size 3
DEBUG:root:shortest_non_cluster_segment = 0
DEBUG:root:Processing segment 1: Segment(4, 5, 0.0), expecting state Segment_State.BAD
DEBUG:root:At the end of the loop for direction IterationDirection.RIGHT, i = 2
DEBUG:root:Processing segment 2: Segment(5, 15, 15029.8828953), expecting state Segment_State.GOOD
DEBUG:root:At the end of the loop for direction IterationDirection.RIGHT, i = 3
DEBUG:root:Finished marking segment states for direction IterationDirection.RIGHT 
DEBUG:root:Finished marking segment states for direction IterationDirection.LEFT 
DEBUG:root:unknown_segments = []
DEBUG:root:bad_segments = [Segment(4, 5, 0.0)]
DEBUG:root:after setting values, outlier_mask = [4]
DEBUG:root:point details are    mLatitude  mLongitude  mAccuracy      formatted_time
4  31.199119  121.581384        150 2015-08-21 18:38:49
DEBUG:root:quartile values are 0.25    16.925496
0.75    28.704291
Name: speed, dtype: float64
DEBUG:root:iqr 11.7787950932
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440207051337}}, {'data.mTime': {'$lt': 1440208787154}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'} 
After filtering with <emission.analysis.classification.cleaning.speed_outlier_detection.BoxplotOutlier object at 0x10b9c6910>, <emission.analysis.classification.cleaning.jump_smoothing.SmoothZigzag object at 0x10b9c6950>, size is (15, 28)
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (6, 28) to (6, 28)
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (6, 28) to (6, 28)
DEBUG:root:quartile values are 0.25    1.355112
0.75    3.099810
Name: speed, dtype: float64
DEBUG:root:iqr 1.74469809832
DEBUG:root:For cluster 0 - 5, distance = 182.303198317, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 5, 182.303198317)] with size 1
INFO:root:No jumps, nothing to filter
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440208787154}}, {'data.mTime': {'$lt': 1440208968804}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'} 
After filtering with <emission.analysis.classification.cleaning.speed_outlier_detection.BoxplotOutlier object at 0x10b9c6910>, <emission.analysis.classification.cleaning.jump_smoothing.SmoothZigzag object at 0x10b9c6950>, size is (6, 28)
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (13, 28) to (13, 28)
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (13, 28) to (13, 28)
DEBUG:root:quartile values are 0.25    1.788880
0.75    3.631428
Name: speed, dtype: float64
DEBUG:root:iqr 1.84254721049
DEBUG:root:For cluster 0 - 12, distance = 723.899580214, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 12, 723.899580214)] with size 1
INFO:root:No jumps, nothing to filter
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440208968804}}, {'data.mTime': {'$lt': 1440209361354}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'} 
After filtering with <emission.analysis.classification.cleaning.speed_outlier_detection.BoxplotOutlier object at 0x10b9c6910>, <emission.analysis.classification.cleaning.jump_smoothing.SmoothZigzag object at 0x10b9c6950>, size is (13, 28)

In [43]:
ipy.inline_map(lo.get_map(lq.get_points_for_section(my_trips_list_aug_21[2])))


final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440175637229}}, {'data.mTime': {'$lt': 1440209361354}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'} 
Out[43]:

In [44]:
ipy.inline_map(lo.get_map_list_after_segmentation([(my_trips_list_aug_21[2], curr_section_list_2)],
                                                  cso.BoxplotOutlier(ignore_zeros=True),
                                                  cjs.SmoothZigzag())[0])


DEBUG:root:==================== 2015-08-21 09:47:17 -> 2015-08-21 19:09:21 ====================
DEBUG:root:-------------------- 0: 2015-08-21 09:47:17 -> 2015-08-21 17:27:23 --------------------
DEBUG:root:filtering points Int64Index([13, 14, 15, 16], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (17, 29) to (13, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25    0.080789
0.75    1.040615
Name: speed, dtype: float64
DEBUG:root:iqr 0.959825903999
DEBUG:root:For cluster 0 - 12, distance = 237.851079012, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 12, 237.851079012)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': Timestamp('2015-08-21 09:47:17'), 'end_ts': 1440203243798, 'start_ts': 1440175637229, 'end_time': '2015-08-21 17:27:23', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (13, 29), formatted_time.head() = 0   2015-08-21 09:48:02
1   2015-08-21 09:48:33
2   2015-08-21 09:49:03
3   2015-08-21 09:49:31
4   2015-08-21 09:50:02
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 1: 2015-08-21 17:27:23 -> 2015-08-21 18:25:46 --------------------
DEBUG:root:filtering points Int64Index([17, 18, 19, 20, 21, 22, 23, 24, 28, 29, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 44, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 88, 89, 90, 91, 94, 96, 97, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (105, 29) to (15, 29)
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25     7.530054
0.75    13.955832
Name: speed, dtype: float64
DEBUG:root:iqr 6.42577771926
DEBUG:root:For cluster 0 - 1, distance = 0.0, is_cluster = True
DEBUG:root:For cluster 1 - 14, distance = 22685.7368091, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 1, 0.0), Segment(1, 14, 22685.7368091)] with size 2
DEBUG:root:shortest_non_cluster_segment = 1
DEBUG:root:Finished marking segment states for direction IterationDirection.RIGHT 
DEBUG:root:Processing segment 0: Segment(0, 1, 0.0), expecting state Segment_State.BAD
DEBUG:root:At the end of the loop for direction IterationDirection.LEFT, i = -1
DEBUG:root:Finished marking segment states for direction IterationDirection.LEFT 
DEBUG:root:unknown_segments = []
DEBUG:root:bad_segments = [Segment(0, 1, 0.0)]
DEBUG:root:after setting values, outlier_mask = [0]
DEBUG:root:point details are    mLatitude  mLongitude  mAccuracy      formatted_time
0  37.845374 -122.270862       91.2 2015-08-21 17:31:30
DEBUG:root:timeDelta = 0, distanceDelta = %s, returning speed = 0
DEBUG:root:quartile values are 0.25     7.354320
0.75    13.020115
Name: speed, dtype: float64
DEBUG:root:iqr 5.66579501398
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 21, 17, 27, 23), 'end_ts': 1440206746525, 'start_ts': 1440203243798, 'end_time': '2015-08-21 18:25:46', 'activity': <Activities.IN_VEHICLE: 0>, 'loc_filter': 'time'}), section_df.shape = (14, 29), formatted_time.head() = 1   2015-08-21 17:31:51
2   2015-08-21 17:32:29
3   2015-08-21 17:35:39
4   2015-08-21 17:35:39
5   2015-08-21 17:42:11
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 2: 2015-08-21 18:25:46 -> 2015-08-21 18:30:51 --------------------
DEBUG:root:filtering points Int64Index([131], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (11, 29) to (10, 29)
DEBUG:root:quartile values are 0.25    0.266927
0.75    0.712135
Name: speed, dtype: float64
DEBUG:root:iqr 0.445207804397
DEBUG:root:For cluster 0 - 3, distance = 6.33026652385, is_cluster = True
DEBUG:root:For cluster 3 - 4, distance = 0.0, is_cluster = True
DEBUG:root:For cluster 4 - 9, distance = 6.90708147114, is_cluster = True
DEBUG:root:After splitting, segment list is [Segment(0, 3, 6.33026652385), Segment(3, 4, 0.0), Segment(4, 9, 6.90708147114)] with size 3
DEBUG:root:Processing segment 1: Segment(3, 4, 0.0), expecting state Segment_State.BAD
DEBUG:root:At the end of the loop for direction IterationDirection.RIGHT, i = 2
DEBUG:root:Processing segment 2: Segment(4, 9, 6.90708147114), expecting state Segment_State.GOOD
DEBUG:root:At the end of the loop for direction IterationDirection.RIGHT, i = 3
DEBUG:root:Finished marking segment states for direction IterationDirection.RIGHT 
DEBUG:root:Finished marking segment states for direction IterationDirection.LEFT 
DEBUG:root:unknown_segments = []
DEBUG:root:bad_segments = [Segment(3, 4, 0.0)]
DEBUG:root:after setting values, outlier_mask = [3]
DEBUG:root:point details are    mLatitude  mLongitude  mAccuracy      formatted_time
3  37.600239 -122.388731       55.5 2015-08-21 18:27:18
DEBUG:root:quartile values are 0.25    0.204562
0.75    0.446306
Name: speed, dtype: float64
DEBUG:root:iqr 0.241744351021
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 21, 18, 25, 46), 'end_ts': 1440207051337, 'start_ts': 1440206746525, 'end_time': '2015-08-21 18:30:51', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (9, 29), formatted_time.head() = 0   2015-08-21 18:25:48
1   2015-08-21 18:26:18
2   2015-08-21 18:26:48
4   2015-08-21 18:27:48
5   2015-08-21 18:28:18
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 3: 2015-08-21 18:30:51 -> 2015-08-21 18:59:47 --------------------
DEBUG:root:filtering points Int64Index([134, 135, 136, 137, 138, 139, 140, 145, 146, 147, 148, 149, 155, 156, 157, 158, 159, 161, 162, 167, 168, 169, 170, 172, 173, 174, 175, 176], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (44, 29) to (16, 29)
DEBUG:root:quartile values are 0.25    21.438677
0.75    32.723148
Name: speed, dtype: float64
DEBUG:root:iqr 11.2844705659
DEBUG:root:For cluster 0 - 4, distance = 7549.77212678, is_cluster = False
DEBUG:root:For cluster 4 - 5, distance = 0.0, is_cluster = True
DEBUG:root:For cluster 5 - 15, distance = 15029.8828953, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 4, 7549.77212678), Segment(4, 5, 0.0), Segment(5, 15, 15029.8828953)] with size 3
DEBUG:root:shortest_non_cluster_segment = 0
DEBUG:root:Processing segment 1: Segment(4, 5, 0.0), expecting state Segment_State.BAD
DEBUG:root:At the end of the loop for direction IterationDirection.RIGHT, i = 2
DEBUG:root:Processing segment 2: Segment(5, 15, 15029.8828953), expecting state Segment_State.GOOD
DEBUG:root:At the end of the loop for direction IterationDirection.RIGHT, i = 3
DEBUG:root:Finished marking segment states for direction IterationDirection.RIGHT 
DEBUG:root:Finished marking segment states for direction IterationDirection.LEFT 
DEBUG:root:unknown_segments = []
DEBUG:root:bad_segments = [Segment(4, 5, 0.0)]
DEBUG:root:after setting values, outlier_mask = [4]
DEBUG:root:point details are    mLatitude  mLongitude  mAccuracy      formatted_time
4  31.199119  121.581384        150 2015-08-21 18:38:49
DEBUG:root:quartile values are 0.25    16.925496
0.75    28.704291
Name: speed, dtype: float64
DEBUG:root:iqr 11.7787950932
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 21, 18, 30, 51), 'end_ts': 1440208787154, 'start_ts': 1440207051337, 'end_time': '2015-08-21 18:59:47', 'activity': <Activities.IN_VEHICLE: 0>, 'loc_filter': 'time'}), section_df.shape = (15, 29), formatted_time.head() = 0   2015-08-21 18:31:18
1   2015-08-21 18:36:19
2   2015-08-21 18:36:49
3   2015-08-21 18:37:19
5   2015-08-21 18:41:49
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 4: 2015-08-21 18:59:47 -> 2015-08-21 19:02:48 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (6, 29) to (6, 29)
DEBUG:root:quartile values are 0.25    1.355112
0.75    3.099810
Name: speed, dtype: float64
DEBUG:root:iqr 1.74469809832
DEBUG:root:For cluster 0 - 5, distance = 182.303198317, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 5, 182.303198317)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 21, 18, 59, 47), 'end_ts': 1440208968804, 'start_ts': 1440208787154, 'end_time': '2015-08-21 19:02:48', 'activity': <Activities.ON_FOOT: 2>, 'loc_filter': 'time'}), section_df.shape = (6, 29), formatted_time.head() = 0   2015-08-21 18:59:50
1   2015-08-21 19:00:24
2   2015-08-21 19:00:49
3   2015-08-21 19:01:20
4   2015-08-21 19:01:50
Name: formatted_time, dtype: datetime64[ns]
DEBUG:root:-------------------- 5: 2015-08-21 19:02:48 -> 2015-08-21 19:09:21 --------------------
DEBUG:root:filtering points Int64Index([], dtype='int64')
DEBUG:root:after accuracy filtering, filtered list size went from (13, 29) to (13, 29)
DEBUG:root:quartile values are 0.25    1.788880
0.75    3.631428
Name: speed, dtype: float64
DEBUG:root:iqr 1.84254721049
DEBUG:root:For cluster 0 - 12, distance = 723.899580214, is_cluster = False
DEBUG:root:After splitting, segment list is [Segment(0, 12, 723.899580214)] with size 1
INFO:root:No jumps, nothing to filter
DEBUG:root:for section AttrDict({'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'start_time': datetime.datetime(2015, 8, 21, 19, 2, 48), 'end_ts': 1440209361354, 'start_ts': 1440208968804, 'end_time': Timestamp('2015-08-21 19:09:21'), 'activity': <Activities.ON_BICYCLE: 1>, 'loc_filter': 'time'}), section_df.shape = (13, 29), formatted_time.head() = 0   2015-08-21 19:02:50
1   2015-08-21 19:03:20
2   2015-08-21 19:03:50
3   2015-08-21 19:04:20
4   2015-08-21 19:04:50
Name: formatted_time, dtype: datetime64[ns]
final query = {'metadata.key': 'background/location', '$and': [{'data.mTime': {'$gt': 1440175637229}}, {'data.mTime': {'$lt': 1440209361354}}], 'user_id': UUID('0763de67-f61e-3f5d-90e7-518e69793954'), 'metadata.filter': 'time'} 
Out[44]:

In [45]:
ipy.inline_maps(curr_filtered_map_list_2, len(curr_filtered_map_list_2), 3)


Out[45]:

In [45]:


In [45]: